mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
hmmmmm. Bound params *were* working this way before, but now it seems that
I have to bind them as text.
This commit is contained in:
parent
c2ef1ad438
commit
823d48bd37
2 changed files with 3 additions and 3 deletions
|
@ -104,7 +104,7 @@ static int pdo_sqlite_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_d
|
|||
param->paramno = sqlite3_bind_parameter_index(S->stmt, param->name);
|
||||
}
|
||||
convert_to_string(param->parameter);
|
||||
i = sqlite3_bind_blob(S->stmt, param->paramno,
|
||||
i = sqlite3_bind_text(S->stmt, param->paramno,
|
||||
Z_STRVAL_P(param->parameter),
|
||||
Z_STRLEN_P(param->parameter),
|
||||
SQLITE_STATIC);
|
||||
|
@ -126,7 +126,6 @@ static int pdo_sqlite_stmt_fetch(pdo_stmt_t *stmt TSRMLS_DC)
|
|||
{
|
||||
pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data;
|
||||
int i;
|
||||
|
||||
if (!S->stmt) {
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue