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

This commit is contained in:
Tim Hunt
2014-08-21 18:33:22 +01:00
parent e609e6cf02
commit 5dc266d980
+1 -1
View File
@@ -497,7 +497,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)) {