trailing junk in numeric literals

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: trailing junk in numeric literals
Date: 2020-12-28 20:22:58
Message-ID: dbe98a03-a356-8f62-dad5-e6dc296ee464@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I was surprised to find that this doesn't error:

=> select 100a;
a
-----
100

I suspect this and similar cases used to error before aliases without AS
were introduced. But now this seems possibly problematic. Should we
try to handle this better?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2020-12-28 20:54:59 Re: trailing junk in numeric literals
Previous Message Tom Lane 2020-12-28 20:01:50 Re: Better client reporting for "immediate stop" shutdowns