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:
parent
d1161135c3
commit
4b1af2cf5a
1 changed files with 5 additions and 4 deletions
9
dbdimp.c
9
dbdimp.c
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue