MongoDB::forceError

(PECL mongo >=0.9.5)

MongoDB::forceErrorCreates a database error

Descrierea

public MongoDB::forceError ( ) : bool

This method is not very useful for normal MongoDB use. It forces a database error to occur. This means that MongoDB::lastError() will return a generic database error after running this command.

This command is identical to running:

<?php

public function forceError() {
    return 
$this->command(array('forceerror' => 1));
}

?>

Parametri

Această funcție nu are parametri.

Valorile întoarse

Returns the database response.

Istoricul schimbărilor

Versiune Descriere
PECL mongo 1.2.11 Emits E_DEPRECATED when used.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top