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