Re: Unexpected Statement Caching with CURRENT_TIMESTAMP - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: Unexpected Statement Caching with CURRENT_TIMESTAMP
Date
Msg-id 07452E37-B94D-42E2-89E7-97D4C7446700@fastcrypt.com
Whole thread Raw
In response to Unexpected Statement Caching with CURRENT_TIMESTAMP  ("Nicholas E. Wakefield" <nwakefield@KineticNetworks.com>)
List 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 by date:

Previous
From: "Nicholas E. Wakefield"
Date:
Subject: Unexpected Statement Caching with CURRENT_TIMESTAMP
Next
From: Oliver Jowett
Date:
Subject: Re: SQL query never ends