MDL-69973 xmldb: Fix problem with MariaDB >= 10.2.7 metadata defaults
commitf93c934043444ffb84fc885000e197345b725be8
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:23 +0000 (30 19:27 +0100)
tree3f3fe60ad96b46d5b0fc1778436f0dc5645a5ef6
parent37757a69cdfa1749c6b6d6b59ffaef2ef16029b0
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