mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-5.6'
* PHP-5.6: Fix bug #69344 (PDO PgSQL Incorrect binding numeric array with gaps) Fix bug #69362 (PDO-pgsql fails to connect if password contains a leading single quote) Fixed bug #61574 - No MSI Conflicts: ext/pdo_pgsql/pgsql_statement.c
This commit is contained in:
commit
730d7b8fca
2 changed files with 46 additions and 2 deletions
|
@ -301,8 +301,8 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *
|
|||
if (param->paramno >= 0) {
|
||||
zval *parameter;
|
||||
|
||||
if (param->paramno >= zend_hash_num_elements(stmt->bound_param_map)) {
|
||||
pdo_pgsql_error_stmt(stmt, PGRES_FATAL_ERROR, "HY105");
|
||||
if (param->paramno >= zend_hash_num_elements(stmt->bound_params)) {
|
||||
pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "parameter was not defined");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue