Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goWfl-0007XG-BH for pgsql-general@arkaria.postgresql.org; Tue, 29 Jan 2019 16:55:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goWfk-0000Qx-5h for pgsql-general@arkaria.postgresql.org; Tue, 29 Jan 2019 16:55:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goWfj-0000Mw-Rx for pgsql-general@lists.postgresql.org; Tue, 29 Jan 2019 16:55:39 +0000 Received: from pro-open.de ([87.106.136.39] helo=www.pro-open.de) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goWfh-0000n0-VT for pgsql-general@lists.postgresql.org; Tue, 29 Jan 2019 16:55:39 +0000 Received: from [192.168.0.123] (aftr-37-201-243-76.unity-media.net [37.201.243.76]) by www.pro-open.de (Postfix) with ESMTP id B085B100A0A5 for ; Tue, 29 Jan 2019 17:55:31 +0100 (CET) Subject: Re: SELECT of pseudo hex value gives unexpected result To: pgsql-general@lists.postgresql.org References: <3edb0e31-8fea-3cf7-477c-7554ea25975e@pro-open.de> <7563.1548779969@sss.pgh.pa.us> From: "Gunnar \"Nick\" Bluth" Openpgp: preference=signencrypt Autocrypt: addr=gunnar.bluth@pro-open.de; keydata= mQENBFOuo7ABCADU3rFM4gBv4l/Xjfry27pfdYgvWrcR1RA/vLfOgjqivSbMQEHHbTWprJRj B2EbzmTS+faSa/V+mH/jIKBytCc5+hprBd/m5if3/v2PKA7+MHsy1H9T7FqTKRccNl7RIcKF OaonIbY4qMyH6cFafZOgqaGlc3ibfX7PiCL+mdl1mPoyWeVRsKoddSobI40noE+se/FrnKZR DRW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WGc26DO/TDsGwme2NVfL0JufExgdpvkk/x4wzBwdkYfFdNKU3CyA+3T4FuKGL7RPrICJ a+VdCvwMk8dzLqF0UgdfVHtCnUQoQmNnDD7gODw/GTIKpWw+iEE2/EANAONXj7EC+VsW895/ C5aQEZx++cSonrHFSSIUp1OGJoVlmFnJMFCTTElmayTcmfOwGHrn97Et5YePMOsyqWZas+UR uJveoTdGhDToOIufECGb3WJaJ8rFL+ni3NKoiZhZMYVQ+XC8f64Mi5kXlfsylVu6kgCoFqnq 7FTpwqOiRml4APeXGBC6uZW6fUGNDQ== Message-ID: Date: Tue, 29 Jan 2019 17:55:29 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <7563.1548779969@sss.pgh.pa.us> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RwgerTbRM1XO0K4veldKfYhHIHdY1ai15" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --RwgerTbRM1XO0K4veldKfYhHIHdY1ai15 Content-Type: multipart/mixed; boundary="T35wPumFjpO7SFD0DA7YOwUYdVhM3t6yO"; protected-headers="v1" From: "Gunnar \"Nick\" Bluth" To: pgsql-general@lists.postgresql.org Message-ID: Subject: Re: SELECT of pseudo hex value gives unexpected result References: <3edb0e31-8fea-3cf7-477c-7554ea25975e@pro-open.de> <7563.1548779969@sss.pgh.pa.us> In-Reply-To: <7563.1548779969@sss.pgh.pa.us> --T35wPumFjpO7SFD0DA7YOwUYdVhM3t6yO Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Am 29.01.2019 um 17:39 schrieb Tom Lane: > "Gunnar \"Nick\" Bluth" writes: >> Tried >> SELECT 0x5e73266725; [...] > SELECT 0 AS x5e73266725; >=20 > and that's the result you got. Well, yeah, _that_ was pretty obvious. I just didn't expect ot to happen.= =2E. > 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! --=20 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 yo= u getting? - Tom Payne --T35wPumFjpO7SFD0DA7YOwUYdVhM3t6yO-- --RwgerTbRM1XO0K4veldKfYhHIHdY1ai15 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEalk3A/SRAkpwy/bgEBCuazKJM4wFAlxQhYEACgkQEBCuazKJ M4yq5wf7BARFQlrQKzDaxJCqdK+dmp2POdgHkg6hRErdgqAR56KQeinnkYtvFyJY JxHSdnq/R1DIrQNnM7owq6H20DdcUIgld3CtSCCl+CghtvvWAsOQWYeoYxiRNA07 2qu8L+lKxNhvWwoYJ1OewHUnjnlU3lsT8LRDwD5zX8k9+c/156wS1awHccViDRd+ 1+nqasoEj/+tu98M3tN2KQ4jpHRNeOTxblgUkN5FIpbqRY3Yu/fsFZa+IiR/I0dh yXIpN/Cl2RP9z0UNeYUPPnQkJA8gR0p1JtcKWGYimoctmwBVZBrKKwiyOMjKVIr/ /hefqh85SbVQsdO+gEe1slNMufwLHg== =ECxC -----END PGP SIGNATURE----- --RwgerTbRM1XO0K4veldKfYhHIHdY1ai15--