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

oops, bind_param type error was treated as a warning and didn't kill when RaiseError was set

This commit is contained in:
Kenichi Ishigaki 2011-10-26 14:42:54 +00:00
parent ca1af87a48
commit 3d62ea8a29
2 changed files with 3 additions and 1 deletions

View file

@ -2,6 +2,8 @@ Changes for Perl extension DBD-SQLite
1.34_03 to be released
- Adding an explicit dynamic_config => 1 (ADAMK)
- bind_param SQL_INTEGER error now actually dies with RaiseError.
(ISHIGAKI)
1.34_02 Fri 21 Oct 2011
*** CHANGES THAT MAY POSSIBLY BREAK YOUR OLD APPLICATIONS ***

View file

@ -694,7 +694,7 @@ sqlite_st_execute(SV *sth, imp_sth_t *imp_sth)
}
else {
if (sql_type == SQLITE_INTEGER || sql_type == SQLITE_FLOAT) {
sqlite_error(sth, imp_sth->retval, form("datatype mismatch: bind %d type %d as %s", i, sql_type, SvPV_nolen_undef_ok(value)));
sqlite_error(sth, -2, form("datatype mismatch: bind %d type %d as %s", i, sql_type, SvPV_nolen_undef_ok(value)));
return -2; /* -> undef in SQLite.xsi */
}