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
e05c5a90
Commit
e05c5a90
authored
Dec 17, 2008
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> to
fix segfault on non-glibc systems.
parent
dcf84099
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
47 deletions
+36
-47
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+5
-0
src/interfaces/ecpg/ecpglib/connect.c
src/interfaces/ecpg/ecpglib/connect.c
+2
-2
src/interfaces/ecpg/test/expected/connect-test1-minGW32.stderr
...nterfaces/ecpg/test/expected/connect-test1-minGW32.stderr
+29
-45
No files found.
src/interfaces/ecpg/ChangeLog
View file @
e05c5a90
...
...
@@ -2400,6 +2400,11 @@ Wed, 26 Nov 2008 14:09:08 +0100
Mon, 15 Dec 2008 16:31:31 +0100
- Do not try to change a const variable in ecpg_log.
Wed, 17 Dec 2008 17:49:11 +0100
- Applied patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> to
fix segfault on non-glibc systems.
- Set pgtypes library version to 3.1.
- Set compat library version to 3.1.
- Set ecpg library version to 6.2.
...
...
src/interfaces/ecpg/ecpglib/connect.c
View file @
e05c5a90
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.5
1 2008/05/16 15:20:03 petere
Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.5
2 2008/12/17 16:52:07 meskes
Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
...
...
@@ -144,7 +144,7 @@ ecpg_finish(struct connection * act)
if
(
actual_connection
==
act
)
actual_connection
=
all_connections
;
ecpg_log
(
"ecpg_finish: connection %s closed
\n
"
,
act
->
name
);
ecpg_log
(
"ecpg_finish: connection %s closed
\n
"
,
act
->
name
?
act
->
name
:
"(null)"
);
for
(
cache
=
act
->
cache_head
;
cache
;
ptr
=
cache
,
cache
=
cache
->
next
,
ecpg_free
(
ptr
));
ecpg_free
(
act
->
name
);
...
...
src/interfaces/ecpg/test/expected/connect-test1-minGW32.stderr
View file @
e05c5a90
...
...
@@ -2,79 +2,63 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database connectdb on <DEFAULT> port <DEFAULT>
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
ECPGexecute line 23: QUERY: alter user connectuser encrypted password 'connectpw'
on connection main
[NO_PID]:
ecpg_execute on line 23: query: alter user connectuser encrypted password 'connectpw'; with 0 parameter(s)
on connection main
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
ECPGexecute line 23 Ok: ALTER ROLE
[NO_PID]:
ecpg_execute on line 23: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish: Connection main closed.
[NO_PID]: ecpg_execute on line 23: OK: ALTER ROLE
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish: connection main closed
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database connectdb on localhost port <DEFAULT>
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish:
Connection main closed.
[NO_PID]: ecpg_finish:
connection main closed
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database <DEFAULT> on localhost port <DEFAULT> for user connectdb
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish: Connection main closed.
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database connectdb on localhost port <REGRESSION_PORT>
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish: Connection main closed.
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database <DEFAULT> on localhost port <REGRESSION_PORT> for user connectdb
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish: Connection main closed.
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database connectdb on <DEFAULT> port <REGRESSION_PORT>
[NO_PID]: ecpg_finish: connection main closed
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
ecpg_finish: Connection main closed.
[NO_PID]:
ECPGconnect: opening database connectdb on localhost port <DEFAULT> for user connectuser
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
ECPGconnect: opening database <DEFAULT> on <DEFAULT> port <REGRESSION_PORT> for user connectdb
[NO_PID]:
ecpg_finish: connection connectdb closed
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish: Connection main closed.
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database connectdb on localhost port <REGRESSION_PORT> for user connectuser
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish: Connection connectdb closed.
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database on localhost port <REGRESSION_PORT> for user connectdb
[NO_PID]: ECPGconnect: opening database <DEFAULT> on localhost port <DEFAULT> for user connectdb
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish:
Connection closed.
[NO_PID]: ecpg_finish:
connection (null) closed
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database connectdb on localhost port <
REGRESSION_PORT>
for user connectuser
[NO_PID]: ECPGconnect: opening database connectdb on localhost port <
DEFAULT>
for user connectuser
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish:
Connection connectdb closed.
[NO_PID]: ecpg_finish:
connection connectdb closed
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database connectdb on <DEFAULT> port <
REGRESSION_PORT>
for user connectuser
[NO_PID]: ECPGconnect: opening database connectdb on <DEFAULT> port <
DEFAULT>
for user connectuser
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish:
Connection connectdb closed.
[NO_PID]: ecpg_finish:
connection connectdb closed
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database connectdb on <DEFAULT> port <
REGRESSION_PORT>
for user connectuser
[NO_PID]: ECPGconnect: opening database connectdb on <DEFAULT> port <
DEFAULT> with options connect_timeout=14
for user connectuser
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish:
Connection connectdb closed.
[NO_PID]: ecpg_finish:
connection connectdb closed
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database nonexistant on localhost port <
REGRESSION_PORT>
for user connectuser
[NO_PID]: ECPGconnect: opening database nonexistant on localhost port <
DEFAULT>
for user connectuser
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: connect: could not open database nonexistant on localhost port <REGRESSION_PORT> for user connectuser in line 62
FATAL: database "nonexistant" does not exist
[NO_PID]: ECPGconnect: could not open database: FATAL: database "nonexistant" does not exist
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish:
Connection nonexistant closed.
[NO_PID]: ecpg_finish:
connection nonexistant closed
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: raising sqlcode -402
in line 62, 'Could not connect to database nonexistant in line 62.'.
[NO_PID]: raising sqlcode -402
on line 53: could not connect to database "nonexistant" on line 53
[NO_PID]: sqlca: code: -402, state: 08001
[NO_PID]: raising sqlcode -220
in line 63, 'No such connection CURRENT in line 63.'.
[NO_PID]: raising sqlcode -220
on line 54: no such connection CURRENT on line 54
[NO_PID]: sqlca: code: -220, state: 08003
[NO_PID]: ECPGconnect: opening database connectdb on localhost port <REGRESSION_PORT> for user connectuser
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: connect: could not open database connectdb on localhost port <REGRESSION_PORT> for user connectuser in line 66
could not connect to server: Connection refused (0x0000274D/10061)
[NO_PID]: ECPGconnect: could not open database: could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" and accepting
TCP/IP connections on port 20?
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish:
Connection connectdb closed.
[NO_PID]: ecpg_finish:
connection connectdb closed
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: raising sqlcode -402
in line 66, 'Could not connect to database connectdb in line 66.'.
[NO_PID]: raising sqlcode -402
on line 57: could not connect to database "connectdb" on line 57
[NO_PID]: sqlca: code: -402, state: 08001
[NO_PID]: ECPGconnect: opening database connectdb on <DEFAULT> port <
REGRESSION_PORT>
for user connectuser
[NO_PID]: ECPGconnect: opening database connectdb on <DEFAULT> port <
DEFAULT>
for user connectuser
[NO_PID]: sqlca: code: 0, state: 00000
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