Unsupported DBDs: Browse | Submit New | Admin

[#10693] error when closing unused prepared statement

Date:
2007-05-08 15:36
Priority:
3
Submitted By:
Ryan Davis (ryepup)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
error when closing unused prepared statement

Detailed description
The ADO Statement assumes that the statement has been executed by the time finish gets called.  This patch adds a simple
nil check before finishing the result handle.

Repro:

DBI.connect('DBI:ADO:Provider=SQLNCLI;Data Source=[server];database=[db];Integrated Security=SSPI') do |dbh|
  dbh.prepare("SELECT 1") do |sth|
    #do nothing with sth
  end
end

patch with:
>patch -up 0 -i ado.patch

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
ado.patch unified diff Download

Changes:

Field Old Value Date By
artifact_group_idNext Bugfix Release2008-07-28 03:22erikh
artifact_group_idNone2008-02-25 03:07erikh
File Added1964: ado.patch2007-05-08 15:36ryepup