ID:               43271
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hp-php dot net at oeri dot ch
-Status:           Open
+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.




Previous Comments:
------------------------------------------------------------------------

[2007-11-15 08:52:40] hp-php dot net at oeri dot ch

The patch is/was faulty. To regain "compileability":

diff -r1.18.2.1.2.5.2.6 firebird_statement.c
633c633
<       if ((*S->name || S->cursor_open) &&
isc_dsql_free_statement(H->isc_status, &S->stmt, DSQL_close)) {
---
>       if ((*S->name || S->cursor_open) &&
isc_dsql_free_statement(S->H->isc_status, &S->stmt, DSQL_close)) {

------------------------------------------------------------------------

[2007-11-14 22:19:19] [EMAIL PROTECTED]

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

------------------------------------------------------------------------

[2007-11-13 18:15:47] [EMAIL PROTECTED]

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

Reply via email to