Re: cvs: pear /DB/DB pgsql.php
| From: | Tomas V.V.Cox | Date: | Sun, 31 Mar 2002 13:22:15 +0000 |
| Subject: | Re: cvs: pear /DB/DB pgsql.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-2925@lists.php.net to get a copy of this message | ||
Jan Lehnardt wrote:
>
> jan Sat Mar 30 12:21:17 2002 EDT
>
> Modified files:
> /pear/DB/DB pgsql.php
> Log:
> - fix typo by user request, not sure though ;)
>
>
> Index: pear/DB/DB/pgsql.php
> diff -u pear/DB/DB/pgsql.php:1.2 pear/DB/DB/pgsql.php:1.3
> --- pear/DB/DB/pgsql.php:1.2 Sat Feb 23 20:38:23 2002
> +++ pear/DB/DB/pgsql.php Sat Mar 30 12:21:17 2002
> @@ -17,7 +17,7 @@
> // | Stig Bakken <ssb@fast.no> |
> // +----------------------------------------------------------------------+
> //
> -// $Id: pgsql.php,v 1.2 2002/02/24 01:38:23 hirokawa Exp $
> +// $Id: pgsql.php,v 1.3 2002/03/30 17:21:17 jan Exp $
> //
> // Database independent query interface definition for PHP's PostgreSQL
> // extension.
> @@ -236,7 +236,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 unique index.*/' => DB_ERROR_ALREADY_EXISTS,
> '/divide by zero$/' =>
The regex is good, please do not change it. What problem have the user?
Tomas V.V.Cox