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:08 -0500 |
commit | 1c291624b29dae2049ff1c7008563fbca85df658 (patch) | |
tree | 48133534a43e90ecfa6503f18a34d490e22f5a9f /src/backend/executor/nodeModifyTable.c | |
parent | f39c927114941cd1f245ef77df7776b0583057b0 (diff) | |
download | postgresql-1c291624b29dae2049ff1c7008563fbca85df658.tar.gz postgresql-1c291624b29dae2049ff1c7008563fbca85df658.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 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions