diff options
| author | Wez Furlong <wez@php.net> | 2005-01-21 00:39:03 +0000 | 
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2005-01-21 00:39:03 +0000 | 
| commit | 26f97a911bb931ac911bb1b1735a5f46c4d14777 (patch) | |
| tree | c986ad716e409ffa72968e583715737729b84276 /ext/pdo_sqlite/sqlite_statement.c | |
| parent | dcd3d84ddb4c0d79437b93cf1cf71d2793749f77 (diff) | |
| download | php-git-26f97a911bb931ac911bb1b1735a5f46c4d14777.tar.gz | |
Eliminate unused parameter.
Don't start a transaction when asking for a cursor with pgsql.
Fix parameter binding for sqlite3
Diffstat (limited to 'ext/pdo_sqlite/sqlite_statement.c')
| -rw-r--r-- | ext/pdo_sqlite/sqlite_statement.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/ext/pdo_sqlite/sqlite_statement.c b/ext/pdo_sqlite/sqlite_statement.c index 613921b18a..71b8959818 100644 --- a/ext/pdo_sqlite/sqlite_statement.c +++ b/ext/pdo_sqlite/sqlite_statement.c @@ -101,10 +101,10 @@ static int pdo_sqlite_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_d  					case PDO_PARAM_STR:  					default:  						if (param->paramno == -1) { -							param->paramno = sqlite3_bind_parameter_index(S->stmt, param->name); +							param->paramno = sqlite3_bind_parameter_index(S->stmt, param->name) - 1;  						}  						convert_to_string(param->parameter); -						i = sqlite3_bind_text(S->stmt, param->paramno, +						i = sqlite3_bind_text(S->stmt, param->paramno + 1,  							Z_STRVAL_P(param->parameter),  							Z_STRLEN_P(param->parameter),  							SQLITE_STATIC); | 
