Search Postgresql Archives

[9.1beta1] UTF-8/Regex Word-Character Definition excluding accented letters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



PostgreSQL 9.1beta1, compiled by Visual C++ build 1500, 64-bit (EnterpriseDB Install Executable)

 

CREATE DATABASE betatest

                TEMPLATE template0

                ENCODING 'UTF8'

                LC_COLLATE 'C'

                LC_CTYPE 'C';

               

[connect to database]

 

CREATE DOMAIN idcode AS text

                NOT NULL CHECK (VALUE ~* '^\w[-:\w]*$')

;

 

SELECT 'AAAAAéaaaaa'::idcode; // -> SQL Error: ERROR:  value for domain idcode violates check constraint "idcode_check" (note the accented “e” between all the “A”s)

 

This is running just fine against a 9.0 install on the same machine.  [\w] is Unicode aware and server encoding is set (and confirmed via SHOW) to be “UTF8”.

 

David J.

 

 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux