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

DBD-SQLite: this must be a better fix

This commit is contained in:
Kenichi Ishigaki 2009-04-07 16:51:53 +00:00
parent 2be3b7ec3a
commit 85d1b98aa2

View file

@ -343,14 +343,14 @@ sqlite_st_execute (SV *sth, imp_sth_t *imp_sth)
char *errmsg;
int num_params = DBIc_NUM_PARAMS(imp_sth);
int i;
int retval; /* = 0; */
int retval = 0;
sqlite_trace(3, "execute");
/* warn("execute\n"); */
if (!DBIc_ACTIVE(imp_dbh)) {
sqlite_error(sth, (imp_xxh_t*)imp_sth, retval, "attempt to execute on inactive database handle");
sqlite_error(sth, (imp_xxh_t*)imp_sth, &PL_sv_undef, "attempt to execute on inactive database handle");
return FALSE;
}