Re: What do I do with this error? - Mailing list pgsql-sql

From Tom Lane
Subject Re: What do I do with this error?
Date
Msg-id 3013.984971455@sss.pgh.pa.us
Whole thread Raw
In response to Re: What do I do with this error?  ("Josh Berkus" <josh@agliodbs.com>)
Responses Re: What do I do with this error?  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
"Josh Berkus" <josh@agliodbs.com> writes:
>     Never mind.  It turns out that if you call try to feed a NULL to a
> regular expression (e.g. Client_name ~* NULL) you get:
> ERROR:  regcomp failed with error empty (sub)expression
> Good to know.  I had expected that regular expressions, like other
> operators, would return NULL if NULL was the pattern.  Is this a bug?

Yes, I'd say so.  7.1 returns a NULL as expected ...
        regards, tom lane


pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: What do I do with this error?
Next
From: "Grant Furick"
Date:
Subject: hierarchical order equivalent