Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0941a890
Commit
0941a890
authored
Mar 17, 2006
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug 2330: Wrong error code in case of a duplicate key
parent
92f5bfcc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/ecpglib/error.c
src/interfaces/ecpg/ecpglib/error.c
+2
-2
No files found.
src/interfaces/ecpg/ChangeLog
View file @
0941a890
...
...
@@ -1993,6 +1993,10 @@ Tu Feb 7 18:48:14 CET 2006
- Bit field notation belongs to a variable not a variable list.
- Output of line number only done by one function.
Fri, 17 Mar 2006 16:38:19 +0100
- Fixed bug 2330: Wrong error code in case of a duplicate key
- Set ecpg library version to 5.2.
- Set ecpg version to 4.2.1.
src/interfaces/ecpg/ecpglib/error.c
View file @
0941a890
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/error.c,v 1.1
1 2005/10/15 02:49:47 momjian
Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/error.c,v 1.1
2 2006/03/17 15:46:13 meskes
Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
...
...
@@ -186,7 +186,7 @@ ECPGraise_backend(int line, PGresult *result, PGconn *conn, int compat)
/* assign SQLCODE for backward compatibility */
if
(
strncmp
(
sqlca
->
sqlstate
,
"23505"
,
sizeof
(
sqlca
->
sqlstate
))
==
0
)
sqlca
->
sqlcode
=
INFORMIX_MODE
(
compat
)
?
ECPG_INFORMIX_DUPLICATE_KEY
:
ECPG_DUPLICATE_KEY
;
if
(
strncmp
(
sqlca
->
sqlstate
,
"21000"
,
sizeof
(
sqlca
->
sqlstate
))
==
0
)
else
if
(
strncmp
(
sqlca
->
sqlstate
,
"21000"
,
sizeof
(
sqlca
->
sqlstate
))
==
0
)
sqlca
->
sqlcode
=
INFORMIX_MODE
(
compat
)
?
ECPG_INFORMIX_SUBSELECT_NOT_ONE
:
ECPG_SUBSELECT_NOT_ONE
;
else
sqlca
->
sqlcode
=
ECPG_PGSQL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment