Patches: Browse | Submit New | Admin

[#21801] [dbd_pg] deallocating prepared statements in GC

Date:
2008-09-04 06:42
Priority:
3
Submitted By:
Kubo Takehiro (kubo)
Assigned To:
Nobody (None)
Category:
DBD::Pg
State:
Open
Summary:
[dbd_pg] deallocating prepared statements in GC

Detailed description
The attached patch will release prepared statements in GC even though they are
not finished explicitly.
  sth = dbh.prepare('select * from names')
  sth.execute
    ...
  sth = nil # forget to finish the statement handle.
  GC.start # <= sth's prepared statement is deallocated by GC.

Sorry, I have not test it. I have no working postgresql database...

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
dbd_pg-finalizer.dif Download

Changes:

Field Old Value Date By
category_idNone2008-11-09 12:36erikh
File Added4016: dbd_pg-finalizer.dif2008-09-04 06:42kubo