diff options
author | Noah Misch <noah@leadboat.com> | 2017-11-11 11:10:53 -0800 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2017-11-11 11:11:28 -0800 |
commit | d8406b9de910bf77d74ac644817b42fb4cf2ad03 (patch) | |
tree | 6d4468ee82ee78c1e50b2e900d3e04857b7e1387 /src/backend/executor/nodeHash.c | |
parent | 62906461c0d2765e0b7f8222b080670ddf1825b0 (diff) |
Ignore XML declaration in xpath_internal(), for UTF8 databases.
When a value contained an XML declaration naming some other encoding,
this function interpreted UTF8 bytes as the named encoding, yielding
mojibake. xml_parse() already has similar logic. This would be
necessary but not sufficient for non-UTF8 databases, so preserve
behavior there until the xpath facility can support such databases
comprehensively. Back-patch to 9.3 (all supported versions).
Pavel Stehule and Noah Misch
Discussion: https://postgr.es/m/CAFj8pRC-dM=tT=QkGi+Achkm+gwPmjyOayGuUfXVumCxkDgYWg@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeHash.c')
0 files changed, 0 insertions, 0 deletions