From c6afd5d4855a9d8379366dbe8fb9e042ac2808b1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Sun, 27 Feb 2005 18:14:21 +0000 Subject: [PATCH] Fix: Syntax error --- htdocs/lib/pgsql.lib.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/lib/pgsql.lib.php b/htdocs/lib/pgsql.lib.php index 2acd14837ce..90b19c6c193 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_RECORD_ERROR_ALREADY_EXISTS, + '/Relation [\"\'].*[\"\'] already exists|Cannot insert a duplicate key into (a )?unique index.*/' => DB_ERROR_RECORD_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, @@ -481,8 +481,6 @@ class DoliDb return DB_ERROR; } - } - /** \brief Renvoie le texte de l'erreur pgsql de l'operation precedente. \return error_text -- GitLab