pgsql: Fix incorrect logic in JSON number lexer - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Fix incorrect logic in JSON number lexer
Date
Msg-id E1SVt6j-0003f9-6F@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f1f6737e154f9d00f1565fc08fd7ac677b380822

Modified Files
--------------
src/backend/utils/adt/json.c       |    4 ++--
src/test/regress/expected/json.out |   10 ++++++++++
src/test/regress/sql/json.sql      |    2 ++
3 files changed, 14 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Put back word that was mysteriously lost in man page conversion
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Small cleanups of contrib --help output