cvs: php4 /pear/DB pgsql.php

From: Date: Thu, 09 Aug 2001 16:40:26 +0000
Subject: cvs: php4 /pear/DB pgsql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-447@lists.php.net to get a copy of this message
cox Thu Aug 9 12:40:26 2001 EDT Modified files: /php4/pear/DB pgsql.php Log: modify nosuchfield to work in postgres 7.x and added constraint to regex's Index: php4/pear/DB/pgsql.php diff -u php4/pear/DB/pgsql.php:1.45 php4/pear/DB/pgsql.php:1.46 --- php4/pear/DB/pgsql.php:1.45 Fri Aug 3 14:29:39 2001 +++ php4/pear/DB/pgsql.php Thu Aug 9 12:40:25 2001 @@ -217,11 +217,12 @@ 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, - '/divide by zero$/' => DB_ERROR_DIVZERO, + '/Relation \'.*\' already exists/' => DB_ERROR_ALREADY_EXISTS, + '/divide by zero$/' => DB_ERROR_DIVZERO, '/pg_atoi: error in .*: can\'t parse /' => DB_ERROR_INVALID_NUMBER, - '/attribute \'.*\' not found$/' => DB_ERROR_NOSUCHFIELD, - '/parser: parse error at or near \"/' => DB_ERROR_SYNTAX + '/ttribute \'.*\' not found$/' => DB_ERROR_NOSUCHFIELD, + '/parser: parse error at or near \"/' => DB_ERROR_SYNTAX, + '/referential integrity violation/' => DB_ERROR_CONSTRAINT ); } foreach ($error_regexps as $regexp => $code) {

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