#40161 [Opn->Csd]: Syntax Error in PDO->prepare example 1
| From: | nlopess@php.net | Date: | Thu, 18 Jan 2007 15:30:08 +0000 |
| Subject: | #40161 [Opn->Csd]: Syntax Error in PDO->prepare example 1 | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969374881@lists.php.net to get a copy of this message | ||
ID: 40161
Updated by: nlopess@php.net
Reported By: peter dot maxwell at yahoo dot co dot uk
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: N/A
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2007-01-18 15:18:57] peter dot maxwell at yahoo dot co dot uk
Description:
------------
Example 1 in http://uk.php.net/manual/en/function.pdo-prepare.php.
Incorrect syntax in the given example; the array of PDO attributes
should be specified as array( PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY
), not as written using a comma.
The syntax in the example will not work for users who change from the
default PDO::CURSOR_FWDONLY to PDO::CURSOR_SCROLL.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40161&edit=1