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)
commit11fac78c13272e8f329abcfa21e5f98d9a1bdf01
tree6132159ee29484deecd2eccaac0a2c3d0a8c257a
parent5d38119bf8b94f73829e3ff83a9fb006006bc04f
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