From 7ecd1839b9efa491fa06b5c763e34ead14696758 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Wed, 8 Apr 2009 05:23:13 +0000 Subject: [PATCH] DBD-SQLite: added SQL_NULLABLE_UNKNOWN; still wonders if the error above should be ignored or not --- dbdimp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dbdimp.c b/dbdimp.c index 79b5211..79aec01 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -808,8 +808,11 @@ sqlite_st_FETCH_attrib (SV *sth, imp_sth_t *imp_sth, SV *keysv) if (retval != SQLITE_OK) { char *errmsg = (char*)sqlite3_errmsg(imp_dbh->db); sqlite_error(sth, (imp_xxh_t*)imp_sth, retval, errmsg); + av_store(av, n, newSViv(2)); /* SQL_NULLABLE_UNKNOWN */ + } + else { + av_store(av, n, newSViv(!notnull)); } - av_store(av, n, newSViv(!notnull)); } #endif }