This commit is contained in:
Laurent Destailleur
2021-06-22 17:09:02 +02:00
parent 618184f94a
commit bcffbe3d67
3 changed files with 18 additions and 13 deletions

View File

@@ -757,6 +757,7 @@ class DoliDBPgsql extends DoliDB
$errorlabel = pg_last_error($this->db);
$errorcode = '';
$reg = array();
if (preg_match('/: *([0-9P]+):/', $errorlabel, $reg)) {
$errorcode = $reg[1];
if (isset($errorcode_map[$errorcode])) {