Skip site navigation (1) Skip section navigation (2)

pgsql: Swap the order of testing for control characters and for column

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Swap the order of testing for control characters and for column
Date: 2007-12-27 16:45:22
Message-ID: 20071227164522.F2ADF7540F0@cvs.postgresql.org (view raw or flat)
Thread:
Lists: 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

Next:From: Tom LaneDate: 2007-12-27 17:00:56
Subject: pgsql: Fix ill-advised usage of x?y:z expressions in errmsg() and
Previous:From: Peter EisentrautDate: 2007-12-27 13:02:48
Subject: pgsql: Wording improvements

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group