From: Wez Furlong Date: Thu, 7 Jul 2005 12:45:40 +0000 (+0000) Subject: Fix bug in bindColumn() for drivers that implement native prepared statements X-Git-Tag: php-5.1.0b3~146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68caaadc6a9a2c4498146cb678e841e2fc696749;p=php Fix bug in bindColumn() for drivers that implement native prepared statements and that use the PDO rewriter to handle non-native parameter syntax. --- 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; }