Re: [BUGS] COPY FROM is not 8bit clean - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [BUGS] COPY FROM is not 8bit clean
Date
Msg-id 17211.1014766407@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] COPY FROM is not 8bit clean  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [BUGS] COPY FROM is not 8bit clean  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Can someone explain why this fixes the problem.

Think about a machine where char is signed by default.  Extracting \254
into an int will produce -2, which will not equal \254 returned by getc.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Dann Corbit"
Date:
Subject: Re: eWeek Poll: Which database is most critical to your
Next
From: Neil Conway
Date:
Subject: Re: eWeek Poll: Which database is most critical to your