Browse source

Changelog

Query
From:
To:
Branch:
Path:
Message:
BugID:
User: +
Format:
: 1 checkin (+186/-0) by Henrik Grubbström (Grubba) <grubba@grubba.org> Lines added/removed recently

Tuesday 13 March 2018

2018-03-13 18:22:53 (3 years ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Loader [MariaDB]: Set sql_mode in my.cnf.

Since MariaDB 10.2.4, SQL_MODE is by default set to NO_AUTO_CREATE_USER,
NO_ENGINE_SUBSTITUTION, STRICT_TRANS_TABLES, ERROR_FOR_DIVISION_BY_ZERO.
In earlier versions of MariaDB 10.2, and since MariaDB 10.1.7, SQL_MODE
is by default set to NO_ENGINE_SUBSTITUTION, NO_AUTO_CREATE_USER.
For earlier versions of MariaDB 10.1, and MariaDB 10.0 and before, no
default is set.

This change in 10.2 can cause queries to fail, complaining about
no default values:

big_query(): Query failed (Field 'x' doesn't have a default value)

cf:
https://www.slickdev.com/2017/09/05/mariadb-10-2-field-xxxxxxx-doesnt-default-value-error/

Fixes remainder of [WS-110].

[permalink]

Bugs? Suggestions?