Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
c6afd5d4
Commit
c6afd5d4
authored
20 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Syntax error
parent
1111e89e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/lib/pgsql.lib.php
+1
-3
1 addition, 3 deletions
htdocs/lib/pgsql.lib.php
with
1 addition
and
3 deletions
htdocs/lib/pgsql.lib.php
+
1
−
3
View file @
c6afd5d4
...
@@ -465,7 +465,7 @@ class DoliDb
...
@@ -465,7 +465,7 @@ class DoliDb
$error_regexps
=
array
(
$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\.|Relation [\"\'].*[\"\'] does not exist|sequence does not exist|class ".+" not found)$/'
=>
DB_ERROR_NOSUCHTABLE
,
'/table [\"\'].*[\"\'] does not exist/'
=>
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
,
'/divide by zero$/'
=>
DB_ERROR_DIVZERO
,
'/pg_atoi: error in .*: can\'t parse /'
=>
DB_ERROR_INVALID_NUMBER
,
'/pg_atoi: error in .*: can\'t parse /'
=>
DB_ERROR_INVALID_NUMBER
,
'/ttribute [\"\'].*[\"\'] not found$|Relation [\"\'].*[\"\'] does not have attribute [\"\'].*[\"\']/'
=>
DB_ERROR_NOSUCHFIELD
,
'/ttribute [\"\'].*[\"\'] not found$|Relation [\"\'].*[\"\'] does not have attribute [\"\'].*[\"\']/'
=>
DB_ERROR_NOSUCHFIELD
,
...
@@ -481,8 +481,6 @@ class DoliDb
...
@@ -481,8 +481,6 @@ class DoliDb
return
DB_ERROR
;
return
DB_ERROR
;
}
}
}
/**
/**
\brief Renvoie le texte de l'erreur pgsql de l'operation precedente.
\brief Renvoie le texte de l'erreur pgsql de l'operation precedente.
\return error_text
\return error_text
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment