Skip to main content

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

Hi Dies,

  I think you should use CURRENT_TIMESTAMP.

  We'll just make Symfoware an unsupported platform for that test.

  Add a line like:         test.addUnsupportedPlatform(SymfowarePlatform.class);


Dies Koper wrote:

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?


eclipselink-dev mailing list

Back to the top