note 78557 deleted from ref.pdo-mysql by peehaa
| From: | peehaa@php.net | Date: | Sat, 03 Dec 2016 16:01:05 +0000 |
| Subject: | note 78557 deleted from ref.pdo-mysql by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207964@lists.php.net to get a copy of this message | ||
Note Submitter: marty at excudo dot net
----
Davey wrote:
> To use "PDO::MYSQL_ATTR_USE_BUFFERED_QUERY" you should call
> PDO::setAttribute("PDO::MYSQL_ATTR_USE_BUFFERED_QUERY", true);
>
>It will not work when passed into PDO::prepare()
>
> - Davey
Almost correct. It should be:
PDO::setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);
so, without the quotes.
otherwise it still won't work :)