MDL-78492 dml: Better support for auroramysql

Aurora MySQL does not support row format COMPRESSED and falls back
to COMPACT if you try to use it, cuasing column size too large
errors if you try to use it with utf8mb4 collation.
This commit is contained in:
Mark Webster 2023-06-16 13:07:19 +01:00
parent 533ce56743
commit 28aaa93df9

View File

@ -396,6 +396,10 @@ class mysqli_native_moodle_database extends moodle_database {
} else if ($this->get_row_format() !== 'Barracuda') {
$this->compressedrowformatsupported = false;
} else if ($this->get_dbtype() === 'auroramysql') {
// Aurora MySQL doesn't support COMPRESSED and falls back to COMPACT if you try to use it.
$this->compressedrowformatsupported = false;
} else {
// All the tests passed, we can safely use ROW_FORMAT=Compressed in sql statements.
$this->compressedrowformatsupported = true;