Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Jakob Huber
postgres-lambda-diff
Commits
aaf125f8
Commit
aaf125f8
authored
18 years ago
by
Michael Meskes
Browse files
Options
Downloads
Patches
Plain Diff
Do not use already free'ed errmsg, bug found by Joachim Wieland
<joachim.wieland@credativ.de>
parent
b13c9686
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/interfaces/ecpg/ChangeLog
+13
-4
13 additions, 4 deletions
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ecpglib/connect.c
+6
-5
6 additions, 5 deletions
src/interfaces/ecpg/ecpglib/connect.c
with
19 additions
and
9 deletions
src/interfaces/ecpg/ChangeLog
+
13
−
4
View file @
aaf125f8
...
@@ -1996,15 +1996,24 @@ Tu Feb 7 18:48:14 CET 2006
...
@@ -1996,15 +1996,24 @@ Tu Feb 7 18:48:14 CET 2006
Fri, 17 Mar 2006 16:38:19 +0100
Fri, 17 Mar 2006 16:38:19 +0100
- Fixed bug 2330: Wrong error code in case of a duplicate key
- Fixed bug 2330: Wrong error code in case of a duplicate key
.
Mo Apr 24 11:40:05 CEST 2006
Mo Apr 24 11:40:05 CEST 2006
- Fixed memory leak bugs found by Martijn Oosterhout.
- Fixed memory leak bugs found by Martijn Oosterhout.
Mi
Mai 31 10:10:36 CEST 2006
We
Mai 31 10:10:36 CEST 2006
- Fixed PGTYPESdate_from_timestamp because some characters got lost there
- Fixed PGTYPESdate_from_timestamp because some characters got lost there.
Tu Jun 6 12:09:56 CEST 2006
- Fixed two more memory leaks in ecpglib.
- Synced parser.
Mo Jun 19 11:15:50 CEST 2006
- Do not use already free'ed errmsg, bug found by Joachim Wieland
<joachim.wieland@credativ.de>
- Set ecpg library version to 5.2.
- Set ecpg library version to 5.2.
- Set ecpg version to 4.2.1.
- Set ecpg version to 4.2.1.
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/ecpglib/connect.c
+
6
−
5
View file @
aaf125f8
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.2
7
200
5/11/30 12:4
9:49 meskes Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.2
8
200
6/06/19 09:1
9:49 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#define POSTGRES_ECPG_INTERNAL
#include
"postgres_fe.h"
#include
"postgres_fe.h"
...
@@ -456,10 +456,6 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
...
@@ -456,10 +456,6 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
const
char
*
errmsg
=
PQerrorMessage
(
this
->
connection
);
const
char
*
errmsg
=
PQerrorMessage
(
this
->
connection
);
char
*
db
=
realname
?
realname
:
"<DEFAULT>"
;
char
*
db
=
realname
?
realname
:
"<DEFAULT>"
;
ecpg_finish
(
this
);
#ifdef ENABLE_THREAD_SAFETY
pthread_mutex_unlock
(
&
connections_mutex
);
#endif
ECPGlog
(
"connect: could not open database %s on %s port %s %s%s%s%s in line %d
\n\t
%s
\n
"
,
ECPGlog
(
"connect: could not open database %s on %s port %s %s%s%s%s in line %d
\n\t
%s
\n
"
,
db
,
db
,
host
?
host
:
"<DEFAULT>"
,
host
?
host
:
"<DEFAULT>"
,
...
@@ -468,6 +464,11 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
...
@@ -468,6 +464,11 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
user
?
"for user "
:
""
,
user
?
user
:
""
,
user
?
"for user "
:
""
,
user
?
user
:
""
,
lineno
,
errmsg
);
lineno
,
errmsg
);
ecpg_finish
(
this
);
#ifdef ENABLE_THREAD_SAFETY
pthread_mutex_unlock
(
&
connections_mutex
);
#endif
ECPGraise
(
lineno
,
ECPG_CONNECT
,
ECPG_SQLSTATE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION
,
db
);
ECPGraise
(
lineno
,
ECPG_CONNECT
,
ECPG_SQLSTATE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION
,
db
);
if
(
host
)
if
(
host
)
ECPGfree
(
host
);
ECPGfree
(
host
);
...
...
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