OSDN Git Service

Swap the order of testing for control characters and for column delimiter in
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Dec 2007 16:45:22 +0000 (16:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Dec 2007 16:45:22 +0000 (16:45 +0000)
commit16adaf1b80013bee8d68ea994d95769be95a8548
treef549758aac9d587f60f7523293faedcd1047cac7
parentf5f1355dc4dccea18ce9b8af14ea48038507409a
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.
src/backend/commands/copy.c