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

From Josh Berkus
Subject Re: What do I do with this error?
Date
Msg-id web-26696@davinci.ethosmedia.com
Whole thread Raw
In response to Re: What do I do with this error?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Tom,

> 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 ...").

That sounds like what I'm seeing!  And now that you point it out, there
is a bug in the PHP that calls this function that passes an empty string
('') instead of a NULL.  Thanks!

Any possibility that that error message could be made more informative?
(i.e. ERROR:  regcomp failed due to empty string in regular expression)

-Josh Berkus



______AGLIO DATABASE SOLUTIONS___________________________                                      Josh Berkus Complete
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco
 


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: What do I do with this error?
Next
From: "Josh Berkus"
Date:
Subject: Re: What do I do with this error?