MFB: Fixed bug #43457 (Prepared statement with incorrect parms doens't

throw exception with pdo_pgsql driver)
This commit is contained in:
Ilia Alshanetsky 2007-12-02 20:59:09 +00:00
parent 9da6da8da4
commit c81c24d905
2 changed files with 3 additions and 2 deletions

View file

@ -175,7 +175,7 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *
param->name, param->namelen + 1, (void**)&nameptr)) {
param->paramno = atoi(nameptr + 1) - 1;
} else {
pdo_pgsql_error_stmt(stmt, PGRES_FATAL_ERROR, "HY093");
pdo_raise_impl_error(stmt->dbh, stmt, "HY093", param->name TSRMLS_CC);
return 0;
}
}