Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group