pgsql: Fix incorrect logic in JSON number lexer

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix incorrect logic in JSON number lexer
Date: 2012-05-19 23:30:45
Message-ID: E1SVt6j-0003f9-6F@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-05-21 15:56:16 pgsql: Document that we deviate from ISO 8601 by not using 'T' on outpu
Previous Message Peter Eisentraut 2012-05-19 17:37:56 pgsql: Put back word that was mysteriously lost in man page conversion