]> granicus.if.org Git - postgresql/commit
Fix incorrect logic in JSON number lexer
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 19 May 2012 23:24:46 +0000 (02:24 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 19 May 2012 23:24:46 +0000 (02:24 +0300)
commitf1f6737e154f9d00f1565fc08fd7ac677b380822
tree77829e4b815df4db51164422fc7426a944ef8eee
parentfe2534e534c0572a71d6f0d2d51a2d058fc3524c
Fix incorrect logic in JSON number lexer

Detectable by gcc -Wlogical-op.

Add two regression test cases that would previously allow incorrect
values to pass.
src/backend/utils/adt/json.c
src/test/regress/expected/json.out
src/test/regress/sql/json.sql