X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id A5616CCF63 for ; Sat, 19 Jul 2003 15:07:57 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 06227-10 for ; Sat, 19 Jul 2003 15:08:21 +0000 (GMT) Received: from touchme.toronto.redhat.com (to-telus.redhat.com [207.219.125.105]) by svr1.postgresql.org (Postfix) with ESMTP id 7F86ACB516 for ; Sat, 19 Jul 2003 12:07:44 -0300 (ADT) Received: from redhat.com (sebastian-int.corp.redhat.com [172.16.52.221]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 374F0800147; Sat, 19 Jul 2003 11:08:19 -0400 (EDT) Message-ID: <3F195DDA.9090401@redhat.com> Date: Sat, 19 Jul 2003 11:03:54 -0400 From: Fernando Nasser Organization: Red Hat Canada User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020607 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Aaron Mulder Cc: PostgreSQL JDBC Subject: Re: Prepared Statements References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/167 X-Sequence-Number: 7551 To keep things simple, wouldn't it be reasonable to test the last SQL fragment and see if it ends in " IN" (trimmed and case insensitively) and use the parenthesis notation instead of the array one? I don't think we can have a PostgreSQL array as the argument of an IN clause anyway. -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9