Re: Problem with creating language by JDBC

Поиск
Список
Период
Сортировка
От MD
Тема Re: Problem with creating language by JDBC
Дата
Msg-id bbb0de80-cbd0-4b78-a47b-d6d7627c8f76@y4g2000yqy.googlegroups.com
обсуждение исходный текст
Ответ на Problem with creating language by JDBC  ("Ming Deng" <mdeng@rim.com>)
Ответы Re: Problem with creating language by JDBC
Список pgsql-jdbc
On Jun 24, 5:38 pm, spam_eater@gmx.net (Thomas Kellerer) wrote:
> Ming Deng wrote on 24.06.2010 19:44:
>
> > Hi there,
>
> > I was trying to create language by execute() or executeUpdate(). But the
> > call always fails with message as
>
> > problem running SQL query: CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql'
> >    HANDLER plpgsql_call_handler
> > .An I/O error occured while sending to the backend.
>
> > Following is a snippet of the Java code I have, which works with
> > creating database, executing other queries:
>
> Did you try to use a regular statement, instead of a PreparedStatement?
>
> Statement stmt = con.createStatement()
> stmt.executeUpdate("CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler");
>
> Thomas
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-jdbc

I just tried with the regular statement, got the same failure.


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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: Problem with creating language by JDBC
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: Problem with creating language by JDBC