cvs: php4 /pear/DB pgsql.php

From: Date: Wed, 14 Nov 2001 15:56:34 +0000
Subject: cvs: php4 /pear/DB pgsql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1322@lists.php.net to get a copy of this message
cox Wed Nov 14 10:56:34 2001 EDT Modified files: /php4/pear/DB pgsql.php Log: make the DB_ERROR_ALREADY_EXISTS error regexp compatible with Postgres 7.x also (will they someday implement error numbers? :-) Index: php4/pear/DB/pgsql.php diff -u php4/pear/DB/pgsql.php:1.58 php4/pear/DB/pgsql.php:1.59 --- php4/pear/DB/pgsql.php:1.58 Sun Nov 11 09:59:59 2001 +++ php4/pear/DB/pgsql.php Wed Nov 14 10:56:34 2001 @@ -17,7 +17,7 @@ // | Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.58 2001/11/11 14:59:59 cox Exp $ +// $Id: pgsql.php,v 1.59 2001/11/14 15:56:34 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|Cannot insert a duplicate key into a unique index/' => 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,

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