svn: /pear/packages/MDB2/trunk/MDB2/Driver/ oci8.php
| From: | Lorenzo Alberton | Date: | Sat, 26 Dec 2009 14:07:00 +0000 |
| Subject: | svn: /pear/packages/MDB2/trunk/MDB2/Driver/ oci8.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-58367@lists.php.net to get a copy of this message | ||
quipo Sat, 26 Dec 2009 14:07:00 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=292647
Log:
new error code mapping
Changed paths:
U pear/packages/MDB2/trunk/MDB2/Driver/oci8.php
Modified: pear/packages/MDB2/trunk/MDB2/Driver/oci8.php
===================================================================
--- pear/packages/MDB2/trunk/MDB2/Driver/oci8.php 2009-12-26 14:06:09 UTC (rev 292646)
+++ pear/packages/MDB2/trunk/MDB2/Driver/oci8.php 2009-12-26 14:07:00 UTC (rev 292647)
@@ -151,6 +151,7 @@
2291 => MDB2_ERROR_CONSTRAINT,
2292 => MDB2_ERROR_CONSTRAINT,
2449 => MDB2_ERROR_CONSTRAINT,
+ 4081 => MDB2_ERROR_ALREADY_EXISTS, //trigger already exists
24344 => MDB2_ERROR_SYNTAX, //success with compilation error
);
}
@@ -397,16 +398,16 @@
return $this->raiseError(MDB2_ERROR_CONNECT_FAILED, null, null,
'unable to establish a connection', __FUNCTION__);
}
-
- if (empty($this->dsn['disable_iso_date'])) {
+
+ if (empty($this->dsn['disable_iso_date'])) {
$query = "ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD
HH24:MI:SS'";
$err =& $this->_doQuery($query, true, $connection);
if (PEAR::isError($err)) {
$this->disconnect(false);
return $err;
}
- }
-
+ }
+
$query = "ALTER SESSION SET NLS_NUMERIC_CHARACTERS='. '";
$err =& $this->_doQuery($query, true, $connection);
if (PEAR::isError($err)) {