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

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Problems with semicolon trying to create a trigger function via jdbc
Дата
Msg-id alpine.BSO.2.00.1003251827080.330@leary.csoft.net
обсуждение исходный текст
Ответ на Re: Problems with semicolon trying to create a trigger function via jdbc  (Collin Peters <cpeters@intouchtechnology.com>)
Ответы Re: Problems with semicolon trying to create a trigger function via jdbc
Список pgsql-jdbc

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


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Collin Peters
Дата:
Сообщение: Re: Problems with semicolon trying to create a trigger function via jdbc
Следующее
От: Maciek Sakrejda
Дата:
Сообщение: Re: Problems with semicolon trying to create a trigger function via jdbc