1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

DBD-SQLite: found there was a better way to return undef...

This commit is contained in:
Kenichi Ishigaki 2009-04-07 18:33:32 +00:00
parent a40eec1e5d
commit ef56832c32

View file

@ -350,8 +350,8 @@ sqlite_st_execute (SV *sth, imp_sth_t *imp_sth)
/* warn("execute\n"); */
if (!DBIc_ACTIVE(imp_dbh)) {
sqlite_error(sth, (imp_xxh_t*)imp_sth, (int)&PL_sv_undef, "attempt to execute on inactive database handle");
return FALSE;
sqlite_error(sth, (imp_xxh_t*)imp_sth, retval, "attempt to execute on inactive database handle");
return -2;
}
if (DBIc_ACTIVE(imp_sth)) {