[
https://issues.apache.org/jira/browse/TORQUE-375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18091623#comment-18091623
]
Georg Kallidis commented on TORQUE-375:
---------------------------------------
yes, indeed, I tested with derbyEmbedded-jenkins. The java.sql.SQLDataException
exceptions might be due to some internal restrictive tests in the derby JDBC
driver (not yet maintained any more).
If I change to hsqldb-jenkins some errors vanish, but some still exist (the
profile hsqldb-jenkins is initialized in test-torque/pom.xml with
<torque.test.currentDateDefault>default="CURRENT_DATE", etc., which explains
some of them
{code:java}
[ERROR] Failures:
[ERROR] DefaultValuesFromDatabaseTest.testJavaDefault:92 expected: <null> but
was: <2010-09-08>
[ERROR]
DefaultValuesFromDatabaseTest.testNotNewObjectSavesUnchangedValues:240
expected: <null> but was: <2010-09-08>
[ERROR] Errors:
[ERROR] DefaultValuesFromDatabaseTest.testCurrentDateAsDefault:275 ┬╗
DateTimeParse Text 'CURRENT_DATE' could not be parsed at index 0
[ERROR] DefaultValuesFromDatabaseTest.testCurrentTimeAsDefault:308 ┬╗
DateTimeParse Text 'CURRENT_TIME' could not be parsed at index 0
[ERROR] DefaultValuesFromDatabaseTest.testCurrentTimestampAsDefault:345 ┬╗
DateTimeParse Text 'CURRENT_TIMESTAMP' could not be parsed at index 0
[ERROR]
DefaultValuesFromDatabaseTest.testNewObjectChangedValue:196->doSelect:405->doSelect:442
┬╗ SQLSyntaxError incompatible data type in conversion
[INFO]
[ERROR] Tests run: 290, Failures: 2, Errors: 4, Skipped: 0{code}
This is exactly line 275 in
org.apache.torque.generated.peer.DefaultValuesFromDatabaseTest
in testCurrentDateAsDefault:
{code:java}
CurrentDateTable currentDate = new CurrentDateTable();{code}
> 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,
> torque8-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)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]