cvs: php4 /pear/DB pgsql.php
| From: | Thomas V.V.Cox | Date: | Sun, 11 Nov 2001 15:00:01 +0000 |
| Subject: | cvs: php4 /pear/DB pgsql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1291@lists.php.net to get a copy of this message | ||
cox Sun Nov 11 10:00:01 2001 EDT
Modified files:
/php4/pear/DB pgsql.php
Log:
more DB_ERROR_ALREADY_EXISTS error maping for Postgres 6.x
Index: php4/pear/DB/pgsql.php
diff -u php4/pear/DB/pgsql.php:1.57 php4/pear/DB/pgsql.php:1.58
--- php4/pear/DB/pgsql.php:1.57 Wed Oct 31 10:08:51 2001
+++ php4/pear/DB/pgsql.php Sun Nov 11 09:59:59 2001
@@ -17,7 +17,7 @@
// | Stig Bakken <ssb@fast.no> |
// +----------------------------------------------------------------------+
//
-// $Id: pgsql.php,v 1.57 2001/10/31 15:08:51 cox Exp $
+// $Id: pgsql.php,v 1.58 2001/11/11 14:59:59 cox Exp $
//
// Database independent query interface definition for PHP's PostgreSQL
// extension.
@@ -240,7 +240,7 @@
if (empty($error_regexps)) {
$error_regexps = array(
'/(Table does not exist\.|Relation \'.*\' does not exist|sequence
does not exist|class ".+" not found)$/' => DB_ERROR_NOSUCHTABLE,
- '/Relation \'.*\' already exists/' =>
DB_ERROR_ALREADY_EXISTS,
+ '/Relation \'.*\' already exists|Cannot insert a duplicate key into
a unique index/' => DB_ERROR_ALREADY_EXISTS,
'/divide by zero$/' => DB_ERROR_DIVZERO,
'/pg_atoi: error in .*: can\'t parse /' =>
DB_ERROR_INVALID_NUMBER,
'/ttribute \'.*\' not found$|Relation \'.*\' does not have
attribute \'.*\'/' => DB_ERROR_NOSUCHFIELD,