1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-08 06:38:12 -04:00

DBD-SQLite: small tweak (#45578)

This commit is contained in:
Kenichi Ishigaki 2009-04-30 14:24:12 +00:00
parent 5dfbf6f15f
commit 6af1d53c28

View file

@ -262,7 +262,7 @@ sqlite_st_prepare (SV *sth, imp_sth_t *imp_sth,
return FALSE; /* -> undef in lib/DBD/SQLite.pm */ return FALSE; /* -> undef in lib/DBD/SQLite.pm */
} }
if (strlen(statement) < 1) { if (*statement == '\0') {
sqlite_error(sth, (imp_xxh_t*)imp_sth, -2, "attempt to prepare empty statement"); sqlite_error(sth, (imp_xxh_t*)imp_sth, -2, "attempt to prepare empty statement");
return FALSE; /* -> undef in lib/DBD/SQLite.pm */ return FALSE; /* -> undef in lib/DBD/SQLite.pm */
} }