From: Kris Jurka <books@ejurka.com>
To: Collin Peters <cpeters@intouchtechnology.com>
Cc: Maciek Sakrejda <msakrejda@truviso.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problems with semicolon trying to create a trigger function via jdbc
Date: Thu, 25 Mar 2010 18:31:20 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1003251827080.330@leary.csoft.net> (raw)
In-Reply-To: <7a8b7ba31003251443v74fe6df1mc412e0c03ba4cf3c@mail.gmail.com>
References: <7a8b7ba31003251319y391cef47sff3c5ee3bba5eb4c@mail.gmail.com>
<895e58dd1003251402t1d2a5ec9j6c3fe6dff87b7a0a@mail.gmail.com>
<7a8b7ba31003251443v74fe6df1mc412e0c03ba4cf3c@mail.gmail.com>
On Thu, 25 Mar 2010, Collin Peters wrote:
> I wasn't able to get the DriverManager.getConnection() approach to
> work (still worked in the unit test, but not the running webapp), but
> reverting to the old 'non-dollar' quoting approach worked.
>
I'd bet you have two different driver versions deployed to your webapp and
you're getting an old version which doesn't understand dollar quotes.
Try
System.out.println(Class.forName("org.postgresql.Driver").getResource("/org/postgresql/Driver.class"));
Kris Jurka
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: books@ejurka.com, cpeters@intouchtechnology.com, msakrejda@truviso.com
Subject: Re: Problems with semicolon trying to create a trigger function via jdbc
In-Reply-To: <alpine.BSO.2.00.1003251827080.330@leary.csoft.net>
References: <7a8b7ba31003251319y391cef47sff3c5ee3bba5eb4c@mail.gmail.com> <895e58dd1003251402t1d2a5ec9j6c3fe6dff87b7a0a@mail.gmail.com> <7a8b7ba31003251443v74fe6df1mc412e0c03ba4cf3c@mail.gmail.com> <alpine.BSO.2.00.1003251827080.330@leary.csoft.net>
* 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