pgsql: Swap the order of testing for control characters and for column - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Swap the order of testing for control characters and for column
Date
Msg-id 20071227164522.F2ADF7540F0@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Swap the order of testing for control characters and for column delimiter in
CopyAttributeOutText(), so that control characters are converted to the
C-style escape sequences even if they happen to be equal to the column
delimiter (as is true by default for tab, for example).  Oversight in my
previous patch to restore pre-8.3 behavior of COPY OUT escaping.  Per report
from Tomas Szepe.

Modified Files:
--------------
    pgsql/src/backend/commands:
        copy.c (r1.290 -> r1.291)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/copy.c?r1=1.290&r2=1.291)

pgsql-committers by date:

Previous
From: petere@postgresql.org (Peter Eisentraut)
Date:
Subject: pgsql: Wording improvements
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix ill-advised usage of x?y:z expressions in errmsg() and