From: Gunnar \"Nick\" Bluth <gunnar.bluth@pro-open.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: SELECT of pseudo hex value gives unexpected result
Date: Tue, 29 Jan 2019 17:55:29 +0100
Message-ID: <ccfeb228-01ab-9354-f60e-5a2dc47bd565@pro-open.de> (raw)
In-Reply-To: <7563.1548779969@sss.pgh.pa.us>
References: <3edb0e31-8fea-3cf7-477c-7554ea25975e@pro-open.de>
<7563.1548779969@sss.pgh.pa.us>
Am 29.01.2019 um 17:39 schrieb Tom Lane:
> "Gunnar \"Nick\" Bluth" <gunnar.bluth@pro-open.de> writes:
>> Tried
>> SELECT 0x5e73266725;
[...]
> SELECT 0 AS x5e73266725;
>
> and that's the result you got.
Well, yeah, _that_ was pretty obvious. I just didn't expect ot to happen...
> I think that the SQL standard considers adjacent tokens to be invalid
> unless one of them is punctuation (e.g. 1+2), but our lexer is a bit
> less rigid about that.
it kind of comforts me that it's at least not defined like that in the
standard ;-)
Cheers anyway!
--
Gunnar "Nick" Bluth
RHCE/SCLA
Mobil +49 172 8853339
Email: gunnar.bluth@pro-open.de
__________________________________________________________________________
In 1984 mainstream users were choosing VMS over UNIX. Ten years later
they are choosing Windows over UNIX. What part of that message aren't you
getting? - Tom Payne
Attachments:
signature.asc (application/pgp-signature, 487B) download
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-general@postgresql.org
Cc: gunnar.bluth@pro-open.de
Subject: Re: SELECT of pseudo hex value gives unexpected result
In-Reply-To: <ccfeb228-01ab-9354-f60e-5a2dc47bd565@pro-open.de>
References: <3edb0e31-8fea-3cf7-477c-7554ea25975e@pro-open.de> <7563.1548779969@sss.pgh.pa.us> <ccfeb228-01ab-9354-f60e-5a2dc47bd565@pro-open.de>
* 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