diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-12-02 21:00:06 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-12-02 21:00:06 +0000 |
commit | e2ed7b551ff519eed4c373be08e9537f4bc4e12e (patch) | |
tree | 6cf4bf9b6089b40899a43b19d8c71a6cdfb79951 /ext/pdo_pgsql/pgsql_statement.c | |
parent | 83156cf04dcfb368d512df5e3382de382d37fbfb (diff) | |
download | php-git-e2ed7b551ff519eed4c373be08e9537f4bc4e12e.tar.gz |
MFB: 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.c | 2 |
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; } } |