]> granicus.if.org Git - php/commit
Added:
authorWez Furlong <wez@php.net>
Sat, 9 Jul 2005 03:52:41 +0000 (03:52 +0000)
committerWez Furlong <wez@php.net>
Sat, 9 Jul 2005 03:52:41 +0000 (03:52 +0000)
commitd3b653e97b5e226f1f3fad86bb5359557e06f875
tree003300d7035caeb19e327722d965aa70d043652b
parent5fe5da90ea7bb3c5f88a9a077f09b18b681371aa
Added:

proto bool PDOStatement::closeCursor()
Closes the cursor, leaving the statement ready for re-execution.

The purpose of the function is to free up the connection to the server so that
other queries may be issued, but leaving the statement in a state that it can
be re-executed.

This is implemented either as an optional driver specific method (allowing for
maximum efficiency), or as the generic PDO fallback if no driver specific
function is installed.

The PDO generic fallback is semantically the same as writing the following code
in your PHP script:

do {
while ($stmt->fetch())
;
if (!$stmt->nextRowset())
break;
} while (true);
ext/pdo/pdo_stmt.c
ext/pdo/php_pdo_driver.h
ext/pdo/tests/pdo_016.phpt
ext/pdo/tests/pdo_018.phpt
ext/pdo/tests/pdo_021.phpt