Re: JDBC driver bug?

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: JDBC driver bug?
Дата
Msg-id AFCCBB403D7E7A4581E48F20AF3E5DB2018920A9@EXADV1.host.magwien.gv.at
обсуждение исходный текст
Ответ на JDBC driver bug?  (YourSoft <yoursoft@freemail.hu>)
Список 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 по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Switching from MySQL to PostgreSQL, JDBC drivers behaving differently
Следующее
От: Tom Lane
Дата:
Сообщение: Re: JDBC driver bug?