Re: JDBC driver bug? - Mailing list pgsql-jdbc

From Albe Laurenz
Subject Re: JDBC driver bug?
Date
Msg-id AFCCBB403D7E7A4581E48F20AF3E5DB2018920A9@EXADV1.host.magwien.gv.at
Whole thread Raw
In response to JDBC driver bug?  (YourSoft <yoursoft@freemail.hu>)
List pgsql-jdbc
> I found the following bug??:
> When you call a pgsql stored procedure (with PreparedStatement), that
> calls an other stored procedure, and you recall the stored procedure
> after dropping and recreating second stored procedure, the calling
will
> throw an exception with:
>
> org.postgresql.util.PSQLException: ERROR: function with OID 63315074
does not exist

Actually, that's a feature, and it has nothing to do with JDBC.

Static SQL in PL/pgSQL ist parsed when you first execute the
function, and the execution plan is retained and used in subsequent
invocations.

If you want a function to use a database object that is dropped and
recreated with the same name, you should use dynamic SQL.

Yours,
Laurenz Albe

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Switching from MySQL to PostgreSQL, JDBC drivers behaving differently
Next
From: Tom Lane
Date:
Subject: Re: JDBC driver bug?