Regex bug

From: David Fetter <david(at)fetter(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Regex bug
Date: 2004-08-06 17:14:44
Message-ID: 20040806171359.GG27306@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Kind people,

Here's a symptom as reported by John Hansen aka applejack:

SELECT 'r'||'\000\125'||'hello' ~ '^.hello' AS "OMG";
OMG
-----
t
(1 row)

I have produced this behavior in 7.4.3 and CVS tip.

This should be false, shouldn't it?

Cheers,
D
--
David Fetter david(at)fetter(dot)org http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778

Remember to vote!

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2004-08-06 17:32:32 Re: Regex bug
Previous Message Donald Fraser 2004-08-06 09:31:10 Notifications in JDBC driver not correct for V3 protocol