DefaultGeneratedValueTest fails on MySQL

Description

on MySQL 5.5:

  • 'CURRENT_TIMESTAMP' is not supported as a default value for 'datetime' type
    on MySQL 5.7:

  • 'CURRENT_TIMESTAMP' is supported for 'datetime' type, but not for 'datetime(6)' - unfortunately, Hibernate uses datetime(6) for java.util.Date

We would probably have to switch to timestamps instead of dates/calendars, but that could break the test in the other databases.
I would suggest to skip the test on MySQL 5 dialects rather than add ugly hacks to make it work..

Environment

None

Activity

Show:
Jan Martiška
October 15, 2015, 12:16 PM
Steve Ebersole
October 26, 2015, 10:03 PM

Thanks! IN future, it is generally enough to do the PR against master, unless ti affects code that is very different between branches.

Assignee

Jan Martiška

Reporter

Jan Martiška

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure