From 7f82c3f1b5359fa7da433f3139c1d527e97fee10 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 15 Feb 2005 22:16:57 +0000 Subject: [PATCH] =?UTF-8?q?Qual:=20Les=20codes=20erreurs=20des=20requetes?= =?UTF-8?q?=20est=20remplac=E9=20par=20l'=E9quivalent=20g=E9n=E9rique,=20c?= =?UTF-8?q?e=20qui=20permet=20compatibilit=E9=20des=20gestions=20d'erreurs?= =?UTF-8?q?=20entre=20mysql=20et=20pgsql.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/pgsql.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/pgsql.lib.php b/htdocs/lib/pgsql.lib.php index 16a3d0b5814..2acd14837ce 100644 --- a/htdocs/lib/pgsql.lib.php +++ b/htdocs/lib/pgsql.lib.php @@ -465,7 +465,7 @@ class DoliDb $error_regexps = array( '/(Table does not exist\.|Relation [\"\'].*[\"\'] does not exist|sequence does not exist|class ".+" not found)$/' => DB_ERROR_NOSUCHTABLE, '/table [\"\'].*[\"\'] does not exist/' => DB_ERROR_NOSUCHTABLE, - '/Relation [\"\'].*[\"\'] already exists|Cannot insert a duplicate key into (a )?unique index.*/' => DB_ERROR_RECORD_ALREADY_EXISTS, + '/Relation [\"\'].*[\"\'] already exists|Cannot insert a duplicate key into (a )?unique index.*/' => DB_RECORD_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,