[JDBC] Re: [JDBC] Timestamp parameter gets sent as date

Поиск
Список
Период
Сортировка
Искать

[JDBC] Re: [JDBC] Timestamp parameter gets sent as date

От:
Genya <genyap@online.ua>
Дата:
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
FAQ