当前位置: 代码迷 >> PHP >> 哪位高手知道这个异常提示是什么意思
  详细解决方案

哪位高手知道这个异常提示是什么意思

热度:195   发布时间:2012-04-26 14:01:31.0
谁知道这个错误提示是什么意思?
错误提示如下: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.这是什么原因?谢谢

------解决方案--------------------
http://www.flashj.cn/wp/pdo-transaction-err-in-php.html
------解决方案--------------------
If you do not fetch all of the data in a result set before issuing your next call to PDO::query(), your call may fail. Call PDOStatement::closeCursor() to release the database resources associated with the PDOStatement object before issuing your next call to PDO::query().

再次查询,要释放掉之前的查询。正如错误提示所说的:Consider using PDOStatement::fetchAll()
  相关解决方案