note 87050 modified in pdo.setattribute by thiago
| From: | thiago@php.net | Date: | Tue, 18 Nov 2008 15:00:37 +0000 |
| Subject: | note 87050 modified in pdo.setattribute by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146649@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:
<?php
$con = new PDO("mysql:dbname=dbname;host=some.ip", "user", "pass",
array(
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
));
?>
--was--
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,
));
http://php.net/manual/en/pdo.setattribute.php