MDL-46918 ddl: fix error when renaming table already exists

This commit is contained in:
Tim Hunt
2014-08-21 18:33:55 +01:00
parent fd72531964
commit f45e49f01b
+1 -1
View File
@@ -502,7 +502,7 @@ class database_manager {
// Check new table doesn't exist
if ($this->table_exists($check)) {
throw new ddl_exception('ddltablealreadyexists', $xmldb_table->getName(), 'can not rename table');
throw new ddl_exception('ddltablealreadyexists', $check->getName(), 'can not rename table');
}
if (!$sqlarr = $this->generator->getRenameTableSQL($xmldb_table, $newname)) {