1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

VC6 fix part2

This commit is contained in:
Kenichi Ishigaki 2012-09-04 14:54:19 +00:00
parent 7fd6c52493
commit efc60c0f19

View file

@ -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);