pgsql: Add test case for trailing junk after numeric literals

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Add test case for trailing junk after numeric literals
Дата
Msg-id E1nJroo-00049u-MY@gemulon.postgresql.org
обсуждение исходный текст
Список 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.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(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Remove pg_atoi()
Следующее
От: John Naylor
Дата:
Сообщение: pgsql: Spell "startup process" with lower case in the documentation