From: Collin Peters <cpeters@intouchtechnology.com>
To: Kris Jurka <books@ejurka.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 15:45:19 -0700
Message-ID: <7a8b7ba31003251545u69166ae0nde99317ec5bd6b3f@mail.gmail.com> (raw)
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>
On Thu, Mar 25, 2010 at 3:31 PM, Kris Jurka <books@ejurka.com> wrote:
>
>
> 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"));
Hmmm... good idea but the driver versions are the same
jar:file:/home/collin/.m2/repository/postgresql/postgresql/8.3-603.jdbc3/postgresql-8.3-603.jdbc3.jar!/org/postgresql/Driver.class
jar:file:/home/collin/Code/intouch/trunk2/java/intouch-webapp/target/intouch-webapp/WEB-INF/lib/postgresql-8.3-603.jdbc3.jar!/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: cpeters@intouchtechnology.com, books@ejurka.com, msakrejda@truviso.com
Subject: Re: Problems with semicolon trying to create a trigger function via jdbc
In-Reply-To: <7a8b7ba31003251545u69166ae0nde99317ec5bd6b3f@mail.gmail.com>
References: <7a8b7ba31003251319y391cef47sff3c5ee3bba5eb4c@mail.gmail.com> <895e58dd1003251402t1d2a5ec9j6c3fe6dff87b7a0a@mail.gmail.com> <7a8b7ba31003251443v74fe6df1mc412e0c03ba4cf3c@mail.gmail.com> <alpine.BSO.2.00.1003251827080.330@leary.csoft.net> <7a8b7ba31003251545u69166ae0nde99317ec5bd6b3f@mail.gmail.com>
* 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