Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit67a6369

Browse files
committed
There is a patch which has worked for me. The real problem might
be in PQreset, which can't reset a conninfo based connection. Thepatch:Arpad Magosanyi
1 parent2925114 commit67a6369

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/interfaces/libpgtcl/pgtclCmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.25 1998/06/1604:10:16 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.26 1998/06/1605:50:55 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -442,7 +442,7 @@ Pg_exec(ClientData cData, Tcl_Interp *interp, int argc, char* argv[])
442442
else {
443443
/* error occurred during the query */
444444
Tcl_SetResult(interp,conn->errorMessage,TCL_STATIC);
445-
if (connStatus==CONNECTION_OK) {
445+
if (connStatus!=CONNECTION_OK) {
446446
/* Is this REALLY a good idea? I don't think so! */
447447
PQreset(conn);
448448
if (conn->status==CONNECTION_OK) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp