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

Commite733510

Browse files
committed
> Mph. It fails for me too when I use --enable-integer-datetimes. Looks
> like that patch still needs some work...Yeah. I'm really, really, *really* sorry for submitting it in the stateit was in. I shouldn't have done that just before moving to anothercountry. I found the problem last night, but couldn't get to a Netconnection until now.The problem is in src/bin/psql/common.c, around line 250-335 somewheredepending on the version. The 2nd and 3rd clauses of the "while" loopcondition: (rstatus == PGRES_COPY_IN) && (rstatus == PGRES_COPY_OUT))should of course be: (rstatus != PGRES_COPY_IN) && (rstatus != PGRES_COPY_OUT))Jeroen T. Vermeulen
1 parent7d1d720 commite733510

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/bin/psql/common.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.57 2003/03/18 22:15:44 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.58 2003/03/20 04:49:18 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"common.h"
@@ -252,8 +252,8 @@ PSQLexec(const char *query, bool ignore_command_ok)
252252
}
253253
PQclear(res);
254254
res=newres;
255-
if (rstatus==PGRES_COPY_IN||
256-
rstatus==PGRES_COPY_OUT)
255+
if (rstatus!=PGRES_COPY_IN&&
256+
rstatus!=PGRES_COPY_OUT)
257257
break;
258258
}
259259
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp