mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
Properly truncating temp tables before dropping them.
This commit is contained in:
parent
8127db52db
commit
96158ee548
@ -110,8 +110,7 @@ class oracle_sql_generator extends sql_generator {
|
||||
*/
|
||||
public function getDropTempTableSQL($xmldb_table) {
|
||||
$sqlarr = $this->getDropTableSQL($xmldb_table);
|
||||
$tablename = $xmldb_table->getName();
|
||||
array_unshift($sqlarr, "TRUNCATE TABLE {".$tablename."}"); // oracle requires truncate before being able to drop a temp table
|
||||
array_unshift($sqlarr, "TRUNCATE TABLE ". $this->getTableName($xmldb_table)); // oracle requires truncate before being able to drop a temp table
|
||||
return $sqlarr;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user