From f3f28673001f8667ae8ac00fecd5d88bbc123030 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Tue, 25 Jul 2017 13:49:53 +0800 Subject: [PATCH] MDL-59476 dml: temporary mysql tables should not use compressed rows --- lib/ddl/mysql_sql_generator.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/ddl/mysql_sql_generator.php b/lib/ddl/mysql_sql_generator.php index b3ecee8a12a..efc610cbcfa 100644 --- a/lib/ddl/mysql_sql_generator.php +++ b/lib/ddl/mysql_sql_generator.php @@ -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"; } } }