Skip Menu |

This queue is for tickets about the DBD-SQLite CPAN distribution.

Report information
The Basics
Id: 2930
Status: resolved
Priority: 0/
Queue: DBD-SQLite

People
Owner: Nobody in particular
Requestors: swany [...] easynews.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.25
Fixed in: (no value)



Subject: segfault using disconnected SQLite DBD handle
If you prepare a statement on a disconnected SQLite handle then try to execute it a segfault is produced. It should probably check that the handle is valid and generate and error otherwise. This is easily reproducible using the following code: use DBI; $lite = DBI->connect('DBI:SQLite:test.db',"",""); $lite->disconnect; #the following line should generate an error message $sth=$lite->prepare('select * from sqlite_master'); #trying to execute our invalid handle causes a segfault $sth->execute; #SEGFAULT