Jdbc: extract java.time.LocalDate from java.sql.Struct [message #689554] |
Tue, 13 February 2024 07:00 |
|
NevemTeve
Messages: 25 Registered: November 2017
|
Junior Member |
|
|
Hi,
Do you happen to know how to extract a 'DATE' (aka SQLT_DAT=12) from a java.sql.Struct as 'java.time.LocalDate' instead of 'java.sql.Timestamp'?
Method java.sql.Struct#getAttributes() returns java.sql.Timestamp, while method java.sql.Struct#getAttributes(Map<String,Class<?>> map) returns java.sql.Timestamp ignoring the parameter.
(It calls oracle.sql.DATE.toJdbc(), which returns java.sql.Timestamp.)
[Updated on: Tue, 13 February 2024 07:01] Report message to a moderator
|
|
|