diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-03-20 04:49:18 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-03-20 04:49:18 +0000 |
commit | e733510d5d67a0b4fb1a9228df598034e487f194 (patch) | |
tree | 61d1205f79ee1f74edf18548ea5bde70cfa9d159 /src | |
parent | 7d1d7200a0fb9bfdaafefddbe35b27515ee2e11b (diff) | |
download | postgresql-e733510d5d67a0b4fb1a9228df598034e487f194.tar.gz postgresql-e733510d5d67a0b4fb1a9228df598034e487f194.zip |
> 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 state
it was in. I shouldn't have done that just before moving to another
country. I found the problem last night, but couldn't get to a Net
connection until now.
The problem is in src/bin/psql/common.c, around line 250-335 somewhere
depending on the version. The 2nd and 3rd clauses of the "while" loop
condition:
(rstatus == PGRES_COPY_IN) &&
(rstatus == PGRES_COPY_OUT))
should of course be:
(rstatus != PGRES_COPY_IN) &&
(rstatus != PGRES_COPY_OUT))
Jeroen T. Vermeulen
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 5d7180f9939..e5a2c0bc8ae 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.57 2003/03/18 22:15:44 petere Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.58 2003/03/20 04:49:18 momjian Exp $ */ #include "postgres_fe.h" #include "common.h" @@ -252,8 +252,8 @@ PSQLexec(const char *query, bool ignore_command_ok) } PQclear(res); res = newres; - if (rstatus == PGRES_COPY_IN || - rstatus == PGRES_COPY_OUT) + if (rstatus != PGRES_COPY_IN && + rstatus != PGRES_COPY_OUT) break; } } |