From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Constantin Teodorescu <teo(at)flex(dot)ro> |
Cc: | pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] Broken select on regular expression !!! |
Date: | 1999-05-19 14:32:02 |
Message-ID: | 29781.927124322@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Constantin Teodorescu <teo(at)flex(dot)ro> writes:
> select * from regdemo where fld1 ~* '^41|^des';
> fld1
> ----
> (0 rows)
> ^^^^^^^^^^^^^^
> !?!?!?!
I see it too. Even more interesting is that these variants are OK:
regression=> select * from regdemo where fld1 ~* '^des|^41';
fld1
-----------
410
destination
(2 rows)
regression=> select * from regdemo where fld1 ~* '(^41)|(^des)';
fld1
-----------
410
destination
(2 rows)
And if you want *really* disturbing:
regression=> select * from regdemo where fld1 ~* '^sou|^des';
fld1
-----------
source
destination
(2 rows)
regression=> select * from regdemo where fld1 ~ '^sou|^des';
fld1
----
(0 rows)
Something is rotten in the state of Denmark...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | José Soares | 1999-05-19 14:38:09 | Re: [SQL] Oddities with NULL and GROUP BY |
Previous Message | D'Arcy J.M. Cain | 1999-05-19 14:00:20 | Re: [HACKERS] PyGreSQL 2.4 |