Re: Closing a statement

Поиск
Список
Период
Сортировка
От Barry Lind
Тема Re: Closing a statement
Дата
Msg-id 3EFB32DF.3060303@xythos.com
обсуждение исходный текст
Ответ на Closing a statement  (Kim Ho <kho@redhat.com>)
Список pgsql-jdbc
Kim,

Yes I agree.  In the resultset code we are a little better at this, but
the statement code is lacking these checks, and they should be there.

--Barry


Kim Ho wrote:
> After running the JDBC Compatibility Test Suite, I've found that
> statements aren't actually closed when you use stmt.close(). If you try
> to execute a closed statement, it _should_ throw an SQLException, but
> doesn't.
>
> Besides the freeing of resources (which is already handled in close()
> but m_binds[] should probably be freed as well), certain operations
> should be disallowed.
>
> I was thinking of all set/get/execute operations.
>
> Any suggestions/comments?
>
> Cheers,
>
> Kim
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>



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

Предыдущее
От: Kim Ho
Дата:
Сообщение: Closing a statement
Следующее
От: "Cesar Amadeo"
Дата:
Сообщение: Client_encoding