mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -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:
parent
ca1af87a48
commit
3d62ea8a29
2 changed files with 3 additions and 1 deletions
2
Changes
2
Changes
|
@ -2,6 +2,8 @@ Changes for Perl extension DBD-SQLite
|
||||||
|
|
||||||
1.34_03 to be released
|
1.34_03 to be released
|
||||||
- Adding an explicit dynamic_config => 1 (ADAMK)
|
- 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
|
1.34_02 Fri 21 Oct 2011
|
||||||
*** CHANGES THAT MAY POSSIBLY BREAK YOUR OLD APPLICATIONS ***
|
*** CHANGES THAT MAY POSSIBLY BREAK YOUR OLD APPLICATIONS ***
|
||||||
|
|
2
dbdimp.c
2
dbdimp.c
|
@ -694,7 +694,7 @@ sqlite_st_execute(SV *sth, imp_sth_t *imp_sth)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (sql_type == SQLITE_INTEGER || sql_type == SQLITE_FLOAT) {
|
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 */
|
return -2; /* -> undef in SQLite.xsi */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue