cvs: pear /DB/DB pgsql.php
| From: | Rui Hirokawa | Date: | Sun, 24 Feb 2002 01:38:23 +0000 |
| Subject: | cvs: pear /DB/DB pgsql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2580@lists.php.net to get a copy of this message | ||
hirokawa Sat Feb 23 20:38:23 2002 EDT
Modified files:
/pear/DB/DB pgsql.php
Log:
fixed compatibity problem with PostgreSQL 7.2.
Index: pear/DB/DB/pgsql.php
diff -u pear/DB/DB/pgsql.php:1.1 pear/DB/DB/pgsql.php:1.2
--- pear/DB/DB/pgsql.php:1.1 Wed Jan 30 04:57:39 2002
+++ pear/DB/DB/pgsql.php Sat Feb 23 20:38:23 2002
@@ -17,7 +17,7 @@
// | Stig Bakken <ssb@fast.no> |
// +----------------------------------------------------------------------+
//
-// $Id: pgsql.php,v 1.1 2002/01/30 09:57:39 ssb Exp $
+// $Id: pgsql.php,v 1.2 2002/02/24 01:38:23 hirokawa Exp $
//
// Database independent query interface definition for PHP's PostgreSQL
// extension.
@@ -235,11 +235,11 @@
static $error_regexps;
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|Cannot insert a duplicate key into
(a )?unique index.*/' => DB_ERROR_ALREADY_EXISTS,
+ '/(Table does not exist\.|Relation [\"\'].*[\"\'] does not
exist|sequence does not exist|class ".+" not found)$/' => DB_ERROR_NOSUCHTABLE,
+ '/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,
+ '/ttribute [\"\'].*[\"\'] not found$|Relation
[\"\'].*[\"\'] does not have attribute [\"\'].*[\"\']/'
=> DB_ERROR_NOSUCHFIELD,
'/parser: parse error at or near \"/' => DB_ERROR_SYNTAX,
'/referential integrity violation/' => DB_ERROR_CONSTRAINT
);