mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-59596 ddl: Added has_breaking_change_sqlmode()
This commit is contained in:
parent
a15c745936
commit
f6b16e95a8
@ -94,6 +94,12 @@ class mariadb_native_moodle_database extends mysqli_native_moodle_database {
|
||||
return version_compare($version, '10.2.7', '>=');
|
||||
}
|
||||
|
||||
public function has_breaking_change_sqlmode() {
|
||||
$version = $this->get_server_info()['version'];
|
||||
// Breaking change since 10.2.4: https://mariadb.com/kb/en/the-mariadb-library/sql-mode/#setting-sql_mode.
|
||||
return version_compare($version, '10.2.4', '>=');
|
||||
}
|
||||
|
||||
/**
|
||||
* It is time to require transactions everywhere.
|
||||
*
|
||||
|
@ -817,6 +817,14 @@ class mysqli_native_moodle_database extends moodle_database {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether SQL_MODE default value has changed in a not backward compatible way.
|
||||
* @return boolean True when SQL_MODE breaks BC; otherwise, false.
|
||||
*/
|
||||
public function has_breaking_change_sqlmode() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns moodle column info for raw column from information schema.
|
||||
* @param stdClass $rawcolumn
|
||||
|
Loading…
x
Reference in New Issue
Block a user