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 }