Re: Problems with semicolon trying to create a trigger function via jdbc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Collin Peters <cpeters(at)intouchtechnology(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Problems with semicolon trying to create a trigger function via jdbc
Date: 2010-03-25 21:00:22
Message-ID: 24158.1269550822@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Collin Peters <cpeters(at)intouchtechnology(dot)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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Maciek Sakrejda 2010-03-25 21:02:51 Re: Problems with semicolon trying to create a trigger function via jdbc
Previous Message Collin Peters 2010-03-25 20:19:44 Problems with semicolon trying to create a trigger function via jdbc