mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
Merge branch 'wip-MDL-59476-master-2' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
23e1ce7d52
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user