mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
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:
parent
576ff830a9
commit
68caaadc6a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user