BUG #2397: 1 = SELECT ASCII(CHR(257)) - Mailing list pgsql-bugs

From Péter Szabó
Subject BUG #2397: 1 = SELECT ASCII(CHR(257))
Date
Msg-id 200604141604.k3EG4hl7065725@wwwmaster.postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged online:

Bug reference:      2397
Logged by:          Péter Szabó
Email address:      pts@szszi.hu
PostgreSQL version: 8.1.3
Operating system:   Linux
Description:        1 = SELECT ASCII(CHR(257))
Details:

Hi!

I have a Unicode-enabled PostgreSQL with the database encoding set to
UNICODE and the client encoding set to UTF-8.

I think ASCII(CHR(257)) should return 257, and not 1. Or, there should be
another function in place of ASCII, that returns 257.

Best regards,

Péter Szabó
free software consultant
Free Software Institute, Hungary

pgsql-bugs by date:

Previous
From: "wangshj"
Date:
Subject: BUG #2395: Can't get right type oid by PQftype.
Next
From: "Martin"
Date:
Subject: BUG #2396: SELECT to_number('6500', '999,999.99') != 650