1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-08 06:38:12 -04:00

error is too severe for calling db_filename against a closed connection

This commit is contained in:
Kenichi Ishigaki 2014-05-30 01:08:07 +09:00
parent 1a62d1a0bd
commit 0193c3f6ff
2 changed files with 1 additions and 2 deletions

View file

@ -1373,7 +1373,6 @@ sqlite_db_filename(pTHX_ SV *dbh)
const char *filename; const char *filename;
if (!imp_dbh->db) { if (!imp_dbh->db) {
sqlite_error(dbh, -1, "Can't tell the filename of a closed database");
return &PL_sv_undef; return &PL_sv_undef;
} }

View file

@ -20,5 +20,5 @@ $dbh->disconnect;
{ {
my $filename = eval { $dbh->sqlite_db_filename }; my $filename = eval { $dbh->sqlite_db_filename };
ok $@ && !$filename, "got an error; no filename; and no segfault"; ok !$@ && !$filename, "got no error; no filename; and no segfault";
} }