From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Problem with creating language by JDBC
Date: Thu, 24 Jun 2010 23:38:10 +0200
Message-ID: <i00j7v$ani$1@dough.gmane.org> (raw)
In-Reply-To: <37335766762332458F9F59CD831915BC04F2FAAA@XCH28YOW.rim.net>
References: <37335766762332458F9F59CD831915BC04F2FAAA@XCH28YOW.rim.net>
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
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: spam_eater@gmx.net
Subject: Re: Problem with creating language by JDBC
In-Reply-To: <i00j7v$ani$1@dough.gmane.org>
References: <37335766762332458F9F59CD831915BC04F2FAAA@XCH28YOW.rim.net> <i00j7v$ani$1@dough.gmane.org>
* 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