summaryrefslogtreecommitdiff
path: root/src/tutorial
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-03-25 23:17:38 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-03-25 23:17:38 -0400
commit0e74f1f6e0313e768d62d5f252a7d167ebd46a86 (patch)
treedfad95a9a6193dc47f5fba54881e11a7038f5375 /src/tutorial
parent0a0ca1cb18a34e92ab549df171e174dcce7bf7a3 (diff)
Fix COPY FROM for null marker strings that correspond to invalid encoding.
The COPY documentation says "COPY FROM matches the input against the null string before removing backslashes". It is therefore reasonable to presume that null markers like E'\\0' will work ... and they did, until someone put the tests in the wrong order during microoptimization-driven rewrites. Since then, we've been failing if the null marker is something that would de-escape to an invalidly-encoded string. Since null markers generally need to be something that can't appear in the data, this represents a nontrivial loss of functionality; surprising nobody noticed it earlier. Per report from Jeff Davis. Backpatch to 8.4 where this got broken.
Diffstat (limited to 'src/tutorial')
0 files changed, 0 insertions, 0 deletions