Re: Regex bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Fetter <david(at)fetter(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Regex bug
Date: 2004-08-06 17:32:32
Message-ID: 20774.1091813552@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

David Fetter <david(at)fetter(dot)org> writes:
> Here's a symptom as reported by John Hansen aka applejack:

> SELECT 'r'||'\000\125'||'hello' ~ '^.hello' AS "OMG";

This is not a regex bug: it has to do with the fact that we don't
support embedded nulls in text values. This may enlighten you
a bit as to what's happening:

regression=# select length ('\000\125');
length
--------
0
(1 row)

regards, tom lane

In response to

  • Regex bug at 2004-08-06 17:14:44 from David Fetter

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David Fetter 2004-08-06 17:38:27 Re: Regex bug
Previous Message David Fetter 2004-08-06 17:14:44 Regex bug