cvs: php4(PHP_4_0_7) /pear/DB pgsql.php

From: Date: Sun, 24 Feb 2002 14:36:02 +0000
Subject: cvs: php4(PHP_4_0_7) /pear/DB pgsql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-2594@lists.php.net to get a copy of this message
hirokawa Sun Feb 24 09:36:02 2002 EDT Modified files: (Branch: PHP_4_0_7) /php4/pear/DB pgsql.php Log: @fixed error message handling with PostgreSQL 7.2 (Rui) Index: php4/pear/DB/pgsql.php diff -u php4/pear/DB/pgsql.php:1.46.2.2 php4/pear/DB/pgsql.php:1.46.2.3 --- php4/pear/DB/pgsql.php:1.46.2.2 Mon Nov 12 20:26:42 2001 +++ php4/pear/DB/pgsql.php Sun Feb 24 09:36:01 2002 @@ -17,7 +17,7 @@ // | Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.46.2.2 2001/11/13 01:26:42 ssb Exp $ +// $Id: pgsql.php,v 1.46.2.3 2002/02/24 14:36:01 hirokawa Exp $ // // Database independent query interface definition for PHP's PostgreSQL // extension. @@ -239,11 +239,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 );

« previous php.pear.cvs (#2594) next »