|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70167 Cannot execute queries while other unbuffered queries are active
Submitted: 2015-07-30 06:44 UTC Modified: 2015-08-09 04:22 UTC
From: hiren at aspl dot in Assigned:
Status: No Feedback Package: PDO MySQL
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
38 + 29 = ?
Subscribe to this entry?

 [2015-07-30 06:44 UTC] hiren at aspl dot in
Error is:

SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.

PHP 5.5.25
mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $
PDO (1.0.4dev)
pdo_mysql (1.0.2)
Symfony 1.4
Doctrine 1.2.4

I already tried with setting PDO::MYSQL_ATTR_USE_BUFFERED_QUERY but seems not working and still facing the error.

It seems to be having some issue with mysqlnd native library.

Apart I made sure that PDO library is using mysqlnd native library and not the other one:

php -r "var_dump(function_exists('mysqli_get_client_stats'));"

Please help.

Many thanks.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-07-30 06:49 UTC] hiren at aspl dot in
Below is MySQL version:

mysql  Ver 14.14 Distrib 5.5.43, for Linux (x86_64) using readline 5.1
 [2015-07-30 06:55 UTC]
-Status: Open +Status: Feedback
 [2015-07-30 06:55 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

 [2015-08-09 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 17 20:03:37 2021 UTC