From: Genya <genyap@online.ua>
To: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Cc: List <pgsql-jdbc@postgresql.org>
Cc: Dave Cramer <pg@fastcrypt.com>
Subject: Re: [JDBC] Timestamp parameter gets sent as date
Date: Mon, 25 Sep 2017 10:20:07 +0300
Message-ID: <6945_1506324007@online.ua> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Thanks Vladimir for a hint.
I have managed to make it work only adding Calendar.getInstance() as a 3d parameter to setTimestamp method. For record, DATE parameter is (was always) LocalDateTime class. Debugger always has shown date parameter set as 2017-01-10 16:45:00+02 so time zone was present (though I don't use it). Still don't understand why it's happening SOMETIMES (not always), seems like a bug ?
Regarding logging. Configured Postgres JDBC driver logging as described in documentation I have noticed that logging is active during Spring initialization (JDBC pool init etc.) but it does not log anything when the application is up. Is it Spring related ? Can anyone share complete configuration excerpt with STATEMENTS logging ?
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: genyap@online.ua, sitnikov.vladimir@gmail.com, pg@fastcrypt.com
Subject: Re: [JDBC] Timestamp parameter gets sent as date
In-Reply-To: <6945_1506324007@online.ua>
References: <6945_1506324007@online.ua>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox