aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogfuncs.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2013-12-27 17:21:27 -0500
committerAndrew Dunstan <andrew@dunslane.net>2013-12-27 17:21:27 -0500
commit4825a9e95fbc11f2edcdd9dbaba08f10d257596f (patch)
tree6eed5988e9cbd6f5dade45d04d66887b9de43c0a /src/backend/access/transam/xlogfuncs.c
parent150a30e19708d8181738c52723b82d783844b337 (diff)
downloadpostgresql-4825a9e95fbc11f2edcdd9dbaba08f10d257596f.tar.gz
postgresql-4825a9e95fbc11f2edcdd9dbaba08f10d257596f.zip
Properly detect invalid JSON numbers when generating JSON.
Instead of looking for characters that aren't valid in JSON numbers, we simply pass the output string through the JSON number parser, and if it fails the string is quoted. This means among other things that money and domains over money will be quoted correctly and generate valid JSON. Fixes bug #8676 reported by Anderson Cristian da Silva. Backpatched to 9.2 where JSON generation was introduced.
Diffstat (limited to 'src/backend/access/transam/xlogfuncs.c')
0 files changed, 0 insertions, 0 deletions