MongoDB::resetError

(PECL mongo >=0.9.5)

MongoDB::resetErrorClears any flagged errors on the database

설명

public array MongoDB::resetError ( void )

This method is not used in normal operations. It resets the database error tracker (which can be incremented with MongoDB::forceError(), also not normally used).

It is equivalent to running:

<?php

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

?>

인수

이 함수는 인수가 없습니다.

반환값

Returns the database response.

변경점

버전 설명
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