From efc60c0f1942b328ae65e1b831ccb42d2a55dd7c Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Tue, 4 Sep 2012 14:54:19 +0000 Subject: [PATCH] VC6 fix part2 --- dbdimp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbdimp.c b/dbdimp.c index 0e98db6..aa20de7 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -1440,8 +1440,8 @@ HV* sqlite_db_table_column_metadata(pTHX_ SV *dbh, SV *dbname, SV *tablename, SV #endif if (rc == SQLITE_OK) { - hv_store(metadata, "data_type", 9, newSVpv(datatype, 0), 0); - hv_store(metadata, "collation_name", 14, newSVpv(collseq, 0), 0); + hv_store(metadata, "data_type", 9, datatype ? newSVpv(datatype, 0) : newSV(0), 0); + hv_store(metadata, "collation_name", 14, collseq ? newSVpv(collseq, 0) : newSV(0), 0); hv_store(metadata, "not_null", 8, newSViv(notnull), 0); hv_store(metadata, "primary", 7, newSViv(primary), 0); hv_store(metadata, "auto_increment", 14, newSViv(autoinc), 0);