From: | Genya <genyap(at)online(dot)ua> |
---|---|
To: | Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com> |
Cc: | List <pgsql-jdbc(at)postgresql(dot)org>, Dave Cramer <pg(at)fastcrypt(dot)com> |
Subject: | Re: [JDBC] Timestamp parameter gets sent as date |
Date: | 2017-09-25 07:20:07 |
Message-ID: | 6945_1506324007@online.ua |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-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 ?
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Dunstan | 2017-09-25 08:04:43 | Re: Reading and writing off-heap data |
Previous Message | Vladimir Sitnikov | 2017-09-22 17:45:37 | Re: Re: Re: [JDBC] Timestamp parameter gets sent as date |