Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 76AC1632636 for ; Thu, 25 Mar 2010 18:00:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 76085-02 for ; Thu, 25 Mar 2010 21:00:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 911E6632511 for ; Thu, 25 Mar 2010 18:00:24 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o2PL0Mlg024159; Thu, 25 Mar 2010 17:00:22 -0400 (EDT) To: Collin Peters cc: pgsql-jdbc@postgresql.org Subject: Re: Problems with semicolon trying to create a trigger function via jdbc In-reply-to: <7a8b7ba31003251319y391cef47sff3c5ee3bba5eb4c@mail.gmail.com> References: <7a8b7ba31003251319y391cef47sff3c5ee3bba5eb4c@mail.gmail.com> Comments: In-reply-to Collin Peters message dated "Thu, 25 Mar 2010 13:19:44 -0700" Date: Thu, 25 Mar 2010 17:00:22 -0400 Message-ID: <24158.1269550822@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.462 tagged_above=-10 required=5 tests=AWL=0.137, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/58 X-Sequence-Number: 20398 Collin Peters writes: > I have some framework code that needs to dynamically generate a > function.  There seems to be a problem where the SQL gets truncated at > the first semicolon encountered in the function.  I have tried this > with a very simple function and duplicated it. Not really an expert, but there are some versions of the jdbc driver that don't understand dollar-quoted strings --- try using more conventional quoting and see if it works. regards, tom lane