cvs: php4 /pear/DB pgsql.php
| From: | Thomas V.V.Cox | Date: | Thu, 02 Aug 2001 22:27:40 +0000 |
| Subject: | cvs: php4 /pear/DB pgsql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-406@lists.php.net to get a copy of this message | ||
cox Thu Aug 2 18:27:40 2001 EDT
Modified files:
/php4/pear/DB pgsql.php
Log:
fix Postgres 7.x error msg in non existant sequence. Thanks to "Troels Arvin"
<troels@arvin.dk>
Index: php4/pear/DB/pgsql.php
diff -u php4/pear/DB/pgsql.php:1.43 php4/pear/DB/pgsql.php:1.44
--- php4/pear/DB/pgsql.php:1.43 Mon Jul 30 16:43:12 2001
+++ php4/pear/DB/pgsql.php Thu Aug 2 18:27:40 2001
@@ -216,7 +216,7 @@
static $error_regexps;
if (empty($error_regexps)) {
$error_regexps = array(
- '/(Table does not exist\.|Relation \'.*\' does not exist|sequence
does not exist)$/' => DB_ERROR_NOSUCHTABLE,
+ '/(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,
'/pg_atoi: error in .*: can\'t parse /' =>
DB_ERROR_INVALID_NUMBER,