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
9e76b4c7
Commit
9e76b4c7
authored
Jul 28, 2006
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
And one more:
Connection identifier has to be unique
parent
72ba3cb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+1
-0
src/interfaces/ecpg/ecpglib/connect.c
src/interfaces/ecpg/ecpglib/connect.c
+13
-4
No files found.
src/interfaces/ecpg/ChangeLog
View file @
9e76b4c7
...
...
@@ -2050,5 +2050,6 @@ Fr Jul 28 11:00:51 CEST 2006
- Added more SoC changes by Joachim Wieland <joe@mcknight.de>:
- SHOW statement puts result into a variable
- COPY TO STDOUT works
- Connection identifier has to be unique
- Set ecpg library version to 5.2.
- Set ecpg version to 4.2.1.
src/interfaces/ecpg/ecpglib/connect.c
View file @
9e76b4c7
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.3
0 2006/06/21 11:38:07
meskes Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.3
1 2006/07/28 10:10:42
meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
...
...
@@ -295,12 +295,21 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
}
if
((
this
=
(
struct
connection
*
)
ECPGalloc
(
sizeof
(
struct
connection
),
lineno
))
==
NULL
)
return
false
;
if
(
dbname
==
NULL
&&
connection_name
==
NULL
)
connection_name
=
"DEFAULT"
;
/* check if the identifier is unique */
if
(
ECPGget_connection
(
connection_name
))
{
ECPGfree
(
dbname
);
ECPGlog
(
"connect: connection identifier %s is already in use
\n
"
,
connection_name
);
return
false
;
}
if
((
this
=
(
struct
connection
*
)
ECPGalloc
(
sizeof
(
struct
connection
),
lineno
))
==
NULL
)
return
false
;
if
(
dbname
!=
NULL
)
{
/* get the detail information out of dbname */
...
...
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