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 20341.985023999@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?
List pgsql-sql
BTW, are you certain that your failure case actually does involve a
NULL, and not an empty string?

regression=# select 'foo' ~* null;?column?
----------

(1 row)

regression=# select 'foo' ~* '';
ERROR:  regcomp failed with error empty (sub)expression

This is correct according to the POSIX definition of regular expressions
("A (modern) RE is one or more non-empty branches ...").
        regards, tom lane


pgsql-sql by date:

Previous
From: "Sarathi, Vijai (CAP)"
Date:
Subject: request for tutorial on plsql
Next
From: Tim Pizey
Date:
Subject: Invalid (null) int8, can't convert to float8