Re: Unexpected Statement Caching with CURRENT_TIMESTAMP

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Unexpected Statement Caching with CURRENT_TIMESTAMP
Дата
Msg-id 07452E37-B94D-42E2-89E7-97D4C7446700@fastcrypt.com
обсуждение исходный текст
Ответ на Unexpected Statement Caching with CURRENT_TIMESTAMP  ("Nicholas E. Wakefield" <nwakefield@KineticNetworks.com>)
Список pgsql-jdbc
Nicholas,

Yes this is expected behaviour. The time is the time when you started
the transaction. It has nothing to do with JDBC.

Dave
On 10-Aug-06, at 8:37 PM, Nicholas E. Wakefield wrote:

> I'm executing 'SELECT CURRENT_TIMESTAMP' from a statement object with
> auto commit off and prepare threshold set to 1. I'm finding that the
> result comes back the same for after multiple calls and instantiations
> of the statement object(The same happens for a prepared statement).
> However this does not occur when I perform a commit before or after
> every call.
>
> Is this expected behaviour?
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: explain analyze is your friend
>


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

Предыдущее
От: "Nicholas E. Wakefield"
Дата:
Сообщение: Unexpected Statement Caching with CURRENT_TIMESTAMP
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: SQL query never ends