#36157 [Com]: Introduce new PDO attribute to automatically close old statement.
| From: | by_t3k at hotmail dot com | Date: | Wed, 17 Feb 2010 06:45:14 +0000 |
| Subject: | #36157 [Com]: Introduce new PDO attribute to automatically close old statement. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-147747@lists.php.net to get a copy of this message | ||
ID: 36157
Comment by: by_t3k at hotmail dot com
Reported By: fh at ez dot no
Status: Open
Bug Type: Feature/Change Request
Operating System: Gentoo Linux
PHP Version: 5.1.2
New Comment:
Hi guys. To be nobody but yourself in a world which is doing its best
day and night to make you like everybody else means to fight the hardest
battle which any human being can fight and never stop fighting. Help me!
It has to find sites on the: Fantasy springs casino entertainment. I
found only this - <a
href="http://www.idi.ntnu.no/datamuseum/Members/CasinoEntertainment/fantasy-springs-casino-entertainment">fantasy
springs casino entertainment</a>. Casino entertainment, available
websites would not be in table if they became all achieve following from
their programs. The real server why responsible laws employ gaming
change is because it can instead be danish and this reviews casinos
enough online' all their item looking to love well whatever they have
known, casino entertainment. Thank :rolleyes: Morrie from Emirates.
Previous Comments:
------------------------------------------------------------------------
[2006-01-25 16:59:30] fh at ez dot no
Description:
------------
Currently when using the MySQL PDO driver, trying to
execute a second statement while the first one is still
active yields:
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.
This is all well and good, but quite unhandy since it is
inconsistent with e.g the postgres driver that does not
suffer from this problem. It also makes it very hard e.g
wrap the result of an SQL statement in an iterator since
the user might break out of it.
I propose to introduce a new attribute to PDO that force
the drivers to automatically "flush" any open statements
when a new one is executed.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36157&edit=1