> Mph. It fails for me too when I use --enable-integer-datetimes. Looks

Bruce Momjian <bruce@momjian.us>

Commit: e733510d5d67a0b4fb1a9228df598034e487f194
Author: Bruce Momjian <bruce@momjian.us>
Date: 2003-03-20T04:49:18Z
Releases: 7.4.1
> 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

Files

PathChange+/−
src/bin/psql/common.c modified +3 −3