diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-02-03 01:39:08 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-02-03 01:39:48 -0500 |
commit | e6ecc93a1747624c4d33fa48d8a2d77319f3400f (patch) | |
tree | 66482d9ca797ee054d80f61d78eb7a40782a7a5c /contrib/postgres_fdw/postgres_fdw.h | |
parent | 7d17e683fcc28a1b371c7dd02935728cd2cbf9bf (diff) | |
download | postgresql-e6ecc93a1747624c4d33fa48d8a2d77319f3400f.tar.gz postgresql-e6ecc93a1747624c4d33fa48d8a2d77319f3400f.zip |
Fix IsValidJsonNumber() to notice trailing non-alphanumeric garbage.
Commit e09996ff8dee3f70 was one brick shy of a load: it didn't insist
that the detected JSON number be the whole of the supplied string.
This allowed inputs such as "2016-01-01" to be misdetected as valid JSON
numbers. Per bug #13906 from Dmitry Ryabov.
In passing, be more wary of zero-length input (I'm not sure this can
happen given current callers, but better safe than sorry), and do some
minor cosmetic cleanup.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
0 files changed, 0 insertions, 0 deletions