diff options
| author | Wez Furlong <wez@php.net> | 2005-07-07 12:45:40 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2005-07-07 12:45:40 +0000 |
| commit | 68caaadc6a9a2c4498146cb678e841e2fc696749 (patch) | |
| tree | 87465a003e460e1cabcdfdc56981b533893a25a3 /ext | |
| parent | 576ff830a9f0ba551500f2c8c19ae2393f0ad30a (diff) | |
| download | php-git-68caaadc6a9a2c4498146cb678e841e2fc696749.tar.gz | |
Fix bug in bindColumn() for drivers that implement native prepared statements
and that use the PDO rewriter to handle non-native parameter syntax.
Diffstat (limited to 'ext')
| -rwxr-xr-x | ext/pdo/pdo_stmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index c0adf1fce9..1718dba8f6 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -292,7 +292,7 @@ static int really_register_bound_param(struct pdo_bound_param_data *param, pdo_s zend_hash_index_update(hash, param->paramno, param, sizeof(*param), (void**)&pparam); } - if (!rewrite_name_to_position(stmt, pparam TSRMLS_CC)) { + if (is_param && !rewrite_name_to_position(stmt, pparam TSRMLS_CC)) { return 0; } |
