mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
error is too severe for calling db_filename against a closed connection
This commit is contained in:
parent
1a62d1a0bd
commit
0193c3f6ff
2 changed files with 1 additions and 2 deletions
1
dbdimp.c
1
dbdimp.c
|
@ -1373,7 +1373,6 @@ sqlite_db_filename(pTHX_ SV *dbh)
|
|||
const char *filename;
|
||||
|
||||
if (!imp_dbh->db) {
|
||||
sqlite_error(dbh, -1, "Can't tell the filename of a closed database");
|
||||
return &PL_sv_undef;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,5 +20,5 @@ $dbh->disconnect;
|
|||
|
||||
{
|
||||
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";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue