Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
CLOUDSTACK-9871: Set SQL Mode in SQL Session for MySQL 5.7 compatibility #2037
MySQL 5.7 has a more strict SQL mode by default with which CloudStack
By setting the SQL Mode to a more relaxed mode on run-time we can
Admins could also apply this to the [mysqld] section of their my.cnf:
sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'
Signed-off-by: Wido den Hollander email@example.com
Trillian test result (tid-990)
@pdion891: As far as I know this should have no impact on 5.6
We simply tell the SQL server which modes we want to have enabled. Starting with MySQL 5.7 various modes have been disabled by default, we just enable them again.
On the long run we should fix the queries CloudStack executes.