Re: What do I do with this error?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Josh Berkus" <josh(at)agliodbs(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: What do I do with this error?
Date: 2001-03-19 17:46:39
Message-ID: 20341.985023999@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2001-03-19 18:44:38 Re: Invalid (null) int8, can't convert to float8
Previous Message postgresql 2001-03-19 17:41:29 serial type question