From: Tom Lane <tgl@sss.pgh.pa.us>
To: Collin Peters <cpeters@intouchtechnology.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problems with semicolon trying to create a trigger function via jdbc
Date: Thu, 25 Mar 2010 17:00:22 -0400
Message-ID: <24158.1269550822@sss.pgh.pa.us> (raw)
In-Reply-To: <7a8b7ba31003251319y391cef47sff3c5ee3bba5eb4c@mail.gmail.com>
References: <7a8b7ba31003251319y391cef47sff3c5ee3bba5eb4c@mail.gmail.com>
Collin Peters <cpeters@intouchtechnology.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, cpeters@intouchtechnology.com
Subject: Re: Problems with semicolon trying to create a trigger function via jdbc
In-Reply-To: <24158.1269550822@sss.pgh.pa.us>
References: <7a8b7ba31003251319y391cef47sff3c5ee3bba5eb4c@mail.gmail.com> <24158.1269550822@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox