pgsql: psql: Make ParseVariableDouble reject values above max - Mailing list pgsql-committers

From Daniel Gustafsson
Subject pgsql: psql: Make ParseVariableDouble reject values above max
Date
Msg-id E1wP02l-000A0e-1N@gemulon.postgresql.org
Whole thread
List pgsql-committers
psql: Make ParseVariableDouble reject values above max

ParseVariableDouble missed returning false after logging an error when
the parsed value exceeded max, making the value assigned rather than
rejected.  Backpatch down to v18 where this was introduced as part of
the \WATCH_INTERVAL.

Author: Sven Klemm <sven@tigerdata.com>
Co-authored-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAMCrgp31p_5SDVi7dwnP39tTW5icQ0MWHA+N4kJdXgkL0PEy8w@mail.gmail.com
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e04910a9a2a3f20c8139efd4fa4a6cdf00f3d3bd

Modified Files
--------------
src/bin/psql/t/001_basic.pl | 2 ++
src/bin/psql/variables.c    | 1 +
2 files changed, 3 insertions(+)


pgsql-committers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: pgsql: oauth: Fix missing quote in errormessage
Next
From: Daniel Gustafsson
Date:
Subject: pgsql: psql: Make ParseVariableDouble reject values above max