#43271 [Asn->Csd]: firebird: closeCursor not implemented
| From: | lwe@php.net | Date: | Wed, 14 Nov 2007 22:19:20 +0000 |
| Subject: | #43271 [Asn->Csd]: firebird: closeCursor not implemented | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119661@lists.php.net to get a copy of this message | ||
ID: 43271
Updated by: lwe@php.net
Reported By: hp-php dot net at oeri dot ch
-Status: Assigned
+Status: Closed
Bug Type: PDO related
Operating System: Linux 2.6
PHP Version: 5.3CVS-2007-11-12 (CVS)
Assigned To: lwe
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Actually there was a bug in execute(), which didn't close an open
cursor before attempting to execute the second time. This bug is fixed,
so it is now possible to make repeated calls to execute on one prepared
statement.
But added closecursor() anyway as it wouldn't do any harm, and it does
make sense, if one uses named cursors (set by set_attribute())
Fixed in PHP_5_3 branch.
/Lars
Previous Comments:
------------------------------------------------------------------------
[2007-11-13 18:15:47] johannes@php.net
Lars, you recently spent some time on firebird issues, can you review
this report?
------------------------------------------------------------------------
[2007-11-12 21:13:07] hp-php dot net at oeri dot ch
Description:
------------
It seems that PDOStatement->closeCursor is not implemented for
pdo_firebird. I'm unable to re-use prepared statements...
I tried to implement a minimalistic version:
http://php.pastebin.com/f476261f8
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43271&edit=1