aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/sql/postgres_fdw.sql
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2013-06-12 13:35:24 -0400
committerAndrew Dunstan <andrew@dunslane.net>2013-06-12 13:35:24 -0400
commit78ed8e03c67d7333708f5c1873ec1d239ae2d7e0 (patch)
tree3e55afe4518926147b449171566cba0ebccdb358 /contrib/postgres_fdw/sql/postgres_fdw.sql
parentc1d729b419ee876c32ddf4ac3a85fa89a6b4a89b (diff)
downloadpostgresql-78ed8e03c67d7333708f5c1873ec1d239ae2d7e0.tar.gz
postgresql-78ed8e03c67d7333708f5c1873ec1d239ae2d7e0.zip
Fix unescaping of JSON Unicode escapes, especially for non-UTF8.
Per discussion on -hackers. We treat Unicode escapes when unescaping them similarly to the way we treat them in PostgreSQL string literals. Escapes in the ASCII range are always accepted, no matter what the database encoding. Escapes for higher code points are only processed in UTF8 databases, and attempts to process them in other databases will result in an error. \u0000 is never unescaped, since it would result in an impermissible null byte.
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
0 files changed, 0 insertions, 0 deletions