summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pgsql_statement.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-12-02 20:58:14 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-12-02 20:58:14 +0000
commit39f37ce950d8cc2783a5cc010b43dfefe3bafb98 (patch)
tree1e2fa42dfe87b4a9a1dfe593a2ae20fbf769feea /ext/pdo_pgsql/pgsql_statement.c
parentfd73296bf2ece043d5b4b6e10016f0319cd67bf3 (diff)
downloadphp-git-39f37ce950d8cc2783a5cc010b43dfefe3bafb98.tar.gz
Fixed bug #43457 (Prepared statement with incorrect parms doens't
throw exception with pdo_pgsql driver)
Diffstat (limited to 'ext/pdo_pgsql/pgsql_statement.c')
-rw-r--r--ext/pdo_pgsql/pgsql_statement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/pgsql_statement.c b/ext/pdo_pgsql/pgsql_statement.c
index b640974d44..aa54886fce 100644
--- a/ext/pdo_pgsql/pgsql_statement.c
+++ b/ext/pdo_pgsql/pgsql_statement.c
@@ -238,7 +238,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;
}
}