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 19:08:31 |
Message-ID: | 20790.985028911@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
"Josh Berkus" <josh(at)agliodbs(dot)com> writes:
> 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)
You're right, this isn't a very transparent message. Perhaps
ERROR: Invalid regular expression (empty expression or subexpression)
Comments, better wordings?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2001-03-19 19:15:01 | Re: What do I do with this error? |
Previous Message | Josh Berkus | 2001-03-19 19:04:13 | Re: What do I do with this error? |