summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-07-07 12:45:40 +0000
committerWez Furlong <wez@php.net>2005-07-07 12:45:40 +0000
commit68caaadc6a9a2c4498146cb678e841e2fc696749 (patch)
tree87465a003e460e1cabcdfdc56981b533893a25a3 /ext
parent576ff830a9f0ba551500f2c8c19ae2393f0ad30a (diff)
downloadphp-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-xext/pdo/pdo_stmt.c2
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;
}