Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] data type of today operator?

Hi,

The 'today' operator in ExpressionOperator is mapped to 'CURRENT_TIMESTAMP'.

If I use the same mapping with Symfoware, one of the tests
(ExpressionUnitTestSuite's CurrentDateTest) fails because its value is
compared with a column of type java.sql.Date (which are not comparable
on Symfoware).

However, if I change the mapping to 'CURRENT_DATE', that test passes,
but another test (JUnitJPQLModifyTestSuite.updateDateTimeFields) fails
because this test compares its value to a column of type java.sql.Timestamp.

Which mapping should I implement in the DB's platform class?

Thanks,
Dies




Back to the top