MDL-59476 dml: temporary mysql tables should not use compressed rows
This commit is contained in:
@@ -329,13 +329,10 @@ class mysql_sql_generator extends sql_generator {
|
||||
* @return array of sql statements
|
||||
*/
|
||||
public function getCreateTempTableSQL($xmldb_table) {
|
||||
$engine = $this->mdb->get_dbengine();
|
||||
// Do we know collation?
|
||||
$collation = $this->mdb->get_dbcollation();
|
||||
$this->temptables->add_temptable($xmldb_table->getName());
|
||||
|
||||
$rowformat = $this->mdb->get_row_format_sql($engine, $collation);
|
||||
|
||||
$sqlarr = parent::getCreateTableSQL($xmldb_table);
|
||||
|
||||
// Let's inject the extra MySQL tweaks.
|
||||
@@ -347,7 +344,7 @@ class mysql_sql_generator extends sql_generator {
|
||||
if (strpos($collation, 'utf8_') === 0) {
|
||||
$sqlarr[$i] .= " DEFAULT CHARACTER SET utf8";
|
||||
}
|
||||
$sqlarr[$i] .= " DEFAULT COLLATE $collation $rowformat";
|
||||
$sqlarr[$i] .= " DEFAULT COLLATE $collation ROW_FORMAT=DYNAMIC";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user