note 87050 added to pdo.setattribute
| From: | jas at dansupport dot dk | Date: | Mon, 17 Nov 2008 09:24:36 +0000 |
| Subject: | note 87050 added to pdo.setattribute | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146618@lists.php.net to get a copy of this message | ||
Calling this function with PDO::MYSQL_ATTR_USE_BUFFERED_QUERY will seem to work, but it DOES NOT.
Instead, set it in the options array when instantiating the PDO connection.
Example:
$con = new PDO("mysql:dbname=dbname;host=some.ip", "user", "pass",
array(
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
));
----
Server IP: 195.184.96.15
Probable Submitter: 83.89.239.225
----
Manual Page -- http://www.php.net/manual/en/pdo.setattribute.php
Edit -- https://master.php.net/note/edit/87050
Del: integrated -- https://master.php.net/note/delete/87050/integrated
Del: useless -- https://master.php.net/note/delete/87050/useless
Del: bad code -- https://master.php.net/note/delete/87050/bad+code
Del: spam -- https://master.php.net/note/delete/87050/spam
Del: non-english -- https://master.php.net/note/delete/87050/non-english
Del: in docs -- https://master.php.net/note/delete/87050/in+docs
Del: other reasons-- https://master.php.net/note/delete/87050
Reject -- https://master.php.net/note/reject/87050
Search -- https://master.php.net/manage/user-notes.php