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:
parent
2be3b7ec3a
commit
85d1b98aa2
1 changed files with 2 additions and 2 deletions
4
dbdimp.c
4
dbdimp.c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue