From 68caaadc6a9a2c4498146cb678e841e2fc696749 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 7 Jul 2005 12:45:40 +0000 Subject: [PATCH] Fix bug in bindColumn() for drivers that implement native prepared statements and that use the PDO rewriter to handle non-native parameter syntax. --- ext/pdo/pdo_stmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1