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

yet another patch by Yuriy to move check for (unsupported) bind_ph/is_inout so it always error-out

This commit is contained in:
Kenichi Ishigaki 2011-10-18 07:27:50 +00:00
parent d1161135c3
commit 4b1af2cf5a

View file

@ -1128,6 +1128,11 @@ sqlite_bind_ph(SV *sth, imp_sth_t *imp_sth,
croak_if_stmt_is_null();
if (is_inout) {
sqlite_error(sth, -2, "InOut bind params not implemented");
return FALSE; /* -> &sv_no in SQLite.xsi */
}
if (!looks_like_number(param)) {
STRLEN len;
char *paramstring;
@ -1146,10 +1151,6 @@ sqlite_bind_ph(SV *sth, imp_sth_t *imp_sth,
}
}
else {
if (is_inout) {
sqlite_error(sth, -2, "InOut bind params not implemented");
return FALSE; /* -> &sv_no in SQLite.xsi */
}
pos = 2 * (SvIV(param) - 1);
}
sqlite_trace(sth, imp_sth, 3, form("bind into 0x%p: %"IVdf" => %s (%"IVdf") pos %d", imp_sth->params, SvIV(param), SvPV_nolen_undef_ok(value), sql_type, pos));