Fix bug in bindColumn() for drivers that implement native prepared statements

and that use the PDO rewriter to handle non-native parameter syntax.
This commit is contained in:
Wez Furlong 2005-07-07 12:45:40 +00:00
parent 576ff830a9
commit 68caaadc6a

View File

@ -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;
}