From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add test case for trailing junk after numeric literals
Date: Tue, 15 Feb 2022 07:00:10 +0000
Message-ID: <E1nJroo-00049u-MY@gemulon.postgresql.org> (raw)
Add test case for trailing junk after numeric literals
PostgreSQL currently accepts numeric literals with trailing
non-digits, such as 123abc where the abc is treated as the next token.
This may be a bit surprising. This commit adds test cases for this;
subsequent commits intend to change this behavior.
Reviewed-by: John Naylor <john.naylor@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/b239564c-cad0-b23e-c57e-166d883cb97d@enterprisedb.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/13d129333ee2cc936350cd257af4d0367a6099ac
Modified Files
--------------
src/test/regress/expected/numerology.out | 62 ++++++++++++++++++++++++++++++++
src/test/regress/sql/numerology.sql | 16 +++++++++
2 files changed, 78 insertions(+)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org
Subject: Re: pgsql: Add test case for trailing junk after numeric literals
In-Reply-To: <E1nJroo-00049u-MY@gemulon.postgresql.org>
References: <E1nJroo-00049u-MY@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox