From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add test case for trailing junk after numeric literals |
Date: | 2022-02-15 07:00:10 |
Message-ID: | E1nJroo-00049u-MY@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(dot)naylor(at)enterprisedb(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/b239564c-cad0-b23e-c57e-166d883cb97d(at)enterprisedb(dot)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(+)
From | Date | Subject | |
---|---|---|---|
Next Message | John Naylor | 2022-02-15 07:33:58 | pgsql: Spell "startup process" with lower case in the documentation |
Previous Message | Peter Eisentraut | 2022-02-15 06:50:55 | pgsql: Remove pg_atoi() |