Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2JJ4EN91631 for ; Mon, 19 Mar 2001 14:04:14 -0500 (EST) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 26696; Mon, 19 Mar 2001 11:04:13 -0800 From: "Josh Berkus" Subject: Re: What do I do with this error? To: Tom Lane Cc: pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Mon, 19 Mar 2001 11:04:13 -0800 Message-ID: In-Reply-To: <20341.985023999@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200103/366 X-Sequence-Number: 2032 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 information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco