mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 21:45:37 +02:00
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:
parent
533ce56743
commit
28aaa93df9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user