Received: from neptune.he.net (neptune.he.net [216.218.166.2]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBL5ac666756 for ; Thu, 21 Dec 2000 00:36:39 -0500 (EST) (envelope-from mykarz@miyabara.com) Received: from ncc1701e (64-32-200-99.sfo3.phoenixdsl.net [64.32.200.99]) by neptune.he.net (8.8.6/8.8.2) with SMTP id VAA27137 for ; Wed, 20 Dec 2000 21:36:21 -0800 Reply-To: From: "Michael Miyabara-McCaskey" To: Subject: regcomp failed with error empty (sub)expression? Date: Wed, 20 Dec 2000 21:36:51 -0800 Message-ID: <004801c06b10$05ed7230$c700a8c0@ncc1701e> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal X-Archive-Number: 200012/198 X-Sequence-Number: 544 Hello all, I just discovered the regex (regular expression matching in PGSQL 7.0.3... However, after trying to run my first query I got the following: regcomp failed with error empty (sub)expression Anys thoughts as to what this means? The following SQL statement generated the error. INSERT INTO table3(table1.oid,table2.oid) SELECT table1.oid, table2.oid FROM table1, table2 WHERE table1.field1 ~* table2.field1 table1.field2 ~* table2.field2 table1.field3 = table2.field3 table1.field4 = table2.field4; Field 1 - 4 on both table 1 and table 2 are all "text", and table1 field1 & 2 are in Upper/Lower vs table2 field1 & 2 are in all UPPER. I'm basically trying to do a simply comparison between table1 and table2 to find duplicates, but the case differences are stopping me, and as the 7.0.3 version of "upper()" has memory leaks, and the Plperl verion of uc() that I created takes A LONG time to run (I have a LOT of records)... here I am trying to match strings with CASE differences. Any help would be appreciated, as to what caused this error. Michael Miyabara-McCaskey Email: mykarz@miyabara.com Web: http://www.miyabara.com/mykarz/ Mobile: +1 408 504 9014