MDL-58584 core_ddl: getDropTableSQL should not do more than what it says

This commit is contained in:
Shamim Rezaie
2020-02-03 15:07:15 +11:00
parent b4d062c6be
commit 934c2ee1b6
8 changed files with 83 additions and 33 deletions
-1
View File
@@ -211,7 +211,6 @@ class oracle_sql_generator extends sql_generator {
$sqlarr = parent::getDropTableSQL($xmldb_table);
if ($this->temptables->is_temptable($xmldb_table->getName())) {
array_unshift($sqlarr, "TRUNCATE TABLE ". $this->getTableName($xmldb_table)); // oracle requires truncate before being able to drop a temp table
$this->temptables->delete_temptable($xmldb_table->getName());
}
return $sqlarr;
}