From ef56832c32e76e544623e1d63d9e994646dbe9c8 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Tue, 7 Apr 2009 18:33:32 +0000 Subject: [PATCH] DBD-SQLite: found there was a better way to return undef... --- dbdimp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbdimp.c b/dbdimp.c index 8213d03..31de4e3 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -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)) {