summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/sqlite_statement.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-12-26 18:13:52 +0000
committerWez Furlong <wez@php.net>2004-12-26 18:13:52 +0000
commit823d48bd37e4ca2c053f85e2ce4825f5d987fde6 (patch)
tree1ce9b697a04bc494c36c30cacb938dfb4e30226c /ext/pdo_sqlite/sqlite_statement.c
parentc2ef1ad438255a8ee70d77a4adb11fc840782d00 (diff)
downloadphp-git-823d48bd37e4ca2c053f85e2ce4825f5d987fde6.tar.gz
hmmmmm. Bound params *were* working this way before, but now it seems that
I have to bind them as text.
Diffstat (limited to 'ext/pdo_sqlite/sqlite_statement.c')
-rw-r--r--ext/pdo_sqlite/sqlite_statement.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pdo_sqlite/sqlite_statement.c b/ext/pdo_sqlite/sqlite_statement.c
index fd61bb78ec..cb513a3199 100644
--- a/ext/pdo_sqlite/sqlite_statement.c
+++ b/ext/pdo_sqlite/sqlite_statement.c
@@ -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;
}