note 108455 added to pdostatement.execute
| From: | nilsandrewithmygoogelianmailyaccou | Date: | Fri, 27 Apr 2012 14:25:11 +0000 |
| Subject: | note 108455 added to pdostatement.execute | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187378@lists.php.net to get a copy of this message | ||
I realized that I ran into serious trouble when debugging my PHP scripts from the command line, and
despite of going to fetchAll and so, I always got the error
SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are
active.
I realized that I had a double init command:
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8; SET CHARACTER SET utf8;"
The first one is the better choice and removing the latter, the error is gone.
----
Server IP: 69.147.83.197
Probable Submitter: 132.230.190.235
----
Manual Page -- http://www.php.net/manual/en/pdostatement.execute.php
Edit -- https://master.php.net/note/edit/108455
Del: integrated -- https://master.php.net/note/delete/108455/integrated
Del: useless -- https://master.php.net/note/delete/108455/useless
Del: bad code -- https://master.php.net/note/delete/108455/bad+code
Del: spam -- https://master.php.net/note/delete/108455/spam
Del: non-english -- https://master.php.net/note/delete/108455/non-english
Del: in docs -- https://master.php.net/note/delete/108455/in+docs
Del: other reasons-- https://master.php.net/note/delete/108455
Reject -- https://master.php.net/note/reject/108455
Search -- https://master.php.net/manage/user-notes.php