MDL-69973 xmldb: Fix problem with MariaDB >= 10.2.7 metadata defaults
commitdb1368926a90063837054b15c8ada476c3764267
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 18 Oct 2020 09:53:37 +0000 (18 11:53 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 30 Oct 2020 18:27:18 +0000 (30 19:27 +0100)
treeaab47cac36de5ce8dca202f7795d84b1b22c936e
parent3b0d958065e28a3fa71b67985f41aae8bc4bba40
MDL-69973 xmldb: Fix problem with MariaDB >= 10.2.7 metadata defaults

With MariaDB 10.2.7 the driver was incorrectly returning '' (empty
string) as default for all the columns having null (meaning, no
default).

Also, cover the case in unit tests, it seems that we were already
testing other defaults but not the null case.
lib/dml/mysqli_native_moodle_database.php
lib/dml/tests/dml_test.php