Add test case for trailing junk after numeric literals
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 14 Feb 2022 20:29:45 +0000 (21:29 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 15 Feb 2022 06:58:49 +0000 (07:58 +0100)
commit13d129333ee2cc936350cd257af4d0367a6099ac
treea1422b1caf42a665ba73062d0a41ed11222e1c6f
parent73508475d69e90f98ebd9b7e1a5933a26a49c5e9
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
src/test/regress/expected/numerology.out
src/test/regress/sql/numerology.sql