summaryrefslogtreecommitdiff
path: root/ext/pdo_oci
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2010-01-12 12:46:54 (GMT)
committerIlia Alshanetsky <iliaa@php.net>2010-01-12 12:46:54 (GMT)
commitd2e14e3f202d1c30dd79c095ff27bf96a146b813 (patch)
treed528dad7ae7982a2c6cf96e085dfd8ea63065645 /ext/pdo_oci
parente3f76cc8c3bb5a68736eaff9cecaf9d81ff278ed (diff)
downloadphp-d2e14e3f202d1c30dd79c095ff27bf96a146b813.tar.gz
Fixed bug #50728 (All PDOExceptions hardcode 'code' property to 0)
Diffstat (limited to 'ext/pdo_oci')
-rwxr-xr-xext/pdo_oci/oci_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_oci/oci_driver.c b/ext/pdo_oci/oci_driver.c
index 3bb7255..52a23a9 100755
--- a/ext/pdo_oci/oci_driver.c
+++ b/ext/pdo_oci/oci_driver.c
@@ -173,7 +173,7 @@ ub4 _oci_error(OCIError *err, pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *what, swor
/* little mini hack so that we can use this code from the dbh ctor */
if (!dbh->methods) {
- zend_throw_exception_ex(php_pdo_get_exception(), 0 TSRMLS_CC, "SQLSTATE[%s]: %s", *pdo_err, einfo->errmsg);
+ zend_throw_exception_ex(php_pdo_get_exception(), einfo->errcode TSRMLS_CC, "SQLSTATE[%s]: %s", *pdo_err, einfo->errmsg);
}
return einfo->errcode;