[jira] [Commented] (TORQUE-375) Support for java.time API

"Graham Leggett (Jira)" <[email protected]> Thu, 25 Jun 2026 13:25:00 +0000 (UTC)
Newsgroups gmane.comp.jakarta.turbine.torque.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/TORQUE-375?page=3Dcom.atlassian=
.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1809=
1612#comment-18091612 ]=20

Graham Leggett commented on TORQUE-375:
---------------------------------------

Can you confirm which database this is and which JDBC driver?

{code}
[ERROR] Errors:
[ERROR]   DataTest.testMultiplePk:140 =E2=94=AC=E2=95=97 Torque java.sql.SQ=
LDataException: An attempt was made to get a data value of type 'TIMESTAMP'=
 from a data value of type 'java.time.LocalDateTime'.
{code}

The java.sql.SQLDataException implies that the JDBC driver is throwing this=
, when java.time.LocalDateTime is indeed the correct object to be returned =
for TIMESTAMP.

Is this a driver that is too old?


> Support for java.time API
> -------------------------
>
>                 Key: TORQUE-375
>                 URL: https://issues.apache.org/jira/browse/TORQUE-375
>             Project: Torque
>          Issue Type: Improvement
>    Affects Versions: 7.1
>            Reporter: Graham Leggett
>            Priority: Major
>         Attachments: torque8-javatime1.patch, torque8-javatime2.patch, to=
rque8-javatime3.patch, torque8-javatime4.patch
>
>
> Switch out java.util.Date, replace with the java.time API.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)