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:
parent
5dfbf6f15f
commit
6af1d53c28
1 changed files with 1 additions and 1 deletions
2
dbdimp.c
2
dbdimp.c
|
@ -262,7 +262,7 @@ sqlite_st_prepare (SV *sth, imp_sth_t *imp_sth,
|
|||
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");
|
||||
return FALSE; /* -> undef in lib/DBD/SQLite.pm */
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue