summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-01-11 02:59:52 +0000
committerWez Furlong <wez@php.net>2005-01-11 02:59:52 +0000
commitc55b4ab5161d33604a2cd5b58c57c566fc71fa67 (patch)
tree77480cc3cb8b45dc27c36ce1c31520ab6bc3e410
parent0e8b1d68645680d128868fbc1ab291066d0a31b6 (diff)
downloadphp-git-c55b4ab5161d33604a2cd5b58c57c566fc71fa67.tar.gz
update for recent adjustments
-rwxr-xr-xext/pdo_oci/oci_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_oci/oci_driver.c b/ext/pdo_oci/oci_driver.c
index 122f7a1d67..4f089e8219 100755
--- a/ext/pdo_oci/oci_driver.c
+++ b/ext/pdo_oci/oci_driver.c
@@ -79,7 +79,7 @@ ub4 _oci_error(OCIError *err, pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *what, swor
switch (status) {
case OCI_SUCCESS:
- *pdo_err = PDO_ERR_NONE;
+ strcpy(*pdo_err, "00000");
break;
case OCI_ERROR:
OCIErrorGet(err, (ub4)1, NULL, &einfo->errcode, errbuf, (ub4)sizeof(errbuf), OCI_HTYPE_ERROR);
@@ -138,7 +138,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(), 0 TSRMLS_CC, "SQLSTATE[%s]: %s", *pdo_err, einfo->errmsg);
}
return einfo->errcode;