From adf6aa4296de9d5dbdece402b0682207999c899a Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Sat, 9 Jul 2005 05:19:02 +0000 Subject: [PATCH] PDO-lastInsertID() returns last value of sequence object. Document PDOStatement-closeCursor(). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@190331 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pdo/functions/PDO-lastInsertId.xml | 8 +- .../functions/PDOStatement-closeCursor.xml | 145 ++++++++++++++++++ reference/pdo/reference.xml | 8 +- 3 files changed, 156 insertions(+), 5 deletions(-) create mode 100644 reference/pdo/functions/PDOStatement-closeCursor.xml diff --git a/reference/pdo/functions/PDO-lastInsertId.xml b/reference/pdo/functions/PDO-lastInsertId.xml index 1cfaf1cb68..763795c6cb 100644 --- a/reference/pdo/functions/PDO-lastInsertId.xml +++ b/reference/pdo/functions/PDO-lastInsertId.xml @@ -1,11 +1,11 @@ - + PDO::lastInsertId - Returns the ID of the last inserted row + Returns the ID of the last inserted row or sequence value @@ -18,7 +18,7 @@ &warn.experimental.func; - Returns the ID of the last inserted row, or the next value from a + Returns the ID of the last inserted row, or the last value from a sequence object. @@ -56,7 +56,7 @@ If a sequence name was specified for the name parameter, PDOStatement::lastInsertId returns a - string representing the next value retrieved from the specified sequence + string representing the last value retrieved from the specified sequence object. diff --git a/reference/pdo/functions/PDOStatement-closeCursor.xml b/reference/pdo/functions/PDOStatement-closeCursor.xml new file mode 100644 index 0000000000..d903c2e442 --- /dev/null +++ b/reference/pdo/functions/PDOStatement-closeCursor.xml @@ -0,0 +1,145 @@ + + + + + + PDOStatement::closeCursor + + Closes the cursor, enabling the statement to be executed again. + + + + &reftitle.description; + + boolPDOStatement::closeCursor + + + + &warn.experimental.func; + + + PDOStatement::closeCursor frees up the connection + to the server so that other queries may be issued, but leaves the + statement in a state that enables it to be executed again. + + + 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: + +fetch()) + ; + if (!$stmt->nextRowset()) + break; +} while (true); +]]> + + + + + + + + + + + + + + + + &reftitle.seealso; + + + PDOStatement::execute + + + + + + + diff --git a/reference/pdo/reference.xml b/reference/pdo/reference.xml index 4a60f86f36..45b168d834 100644 --- a/reference/pdo/reference.xml +++ b/reference/pdo/reference.xml @@ -1,5 +1,5 @@ - + PDO Functions @@ -324,6 +324,12 @@ bash# echo extension=pdo.so >> /usr/local/php5/lib/php.ini - binds a PHP variable to a parameter in the prepared statement + + + closeCursor + - closes the cursor, allowing the statement to be executed again + + columnCount