mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Removed getTableForAlteration
This commit is contained in:
@ -1211,7 +1211,7 @@ runTableRename(NDBT_Context* ctx, NDBT_Step* step){
|
||||
|
||||
const NdbDictionary::Table * oldTable = dict->getTable(pTabName.c_str());
|
||||
if (oldTable) {
|
||||
NdbDictionary::Table newTable = dict->getTableForAlteration(pTabName.c_str());
|
||||
NdbDictionary::Table newTable = *oldTable;
|
||||
newTable.setName(pTabNewName.c_str());
|
||||
CHECK2(dict->alterTable(newTable) == 0,
|
||||
"TableRename failed");
|
||||
@ -1280,7 +1280,7 @@ runTableRenameNF(NDBT_Context* ctx, NDBT_Step* step){
|
||||
|
||||
const NdbDictionary::Table * oldTable = dict->getTable(pTabName.c_str());
|
||||
if (oldTable) {
|
||||
NdbDictionary::Table newTable = dict->getTableForAlteration(pTabName.c_str());
|
||||
NdbDictionary::Table newTable = *oldTable;
|
||||
newTable.setName(pTabNewName.c_str());
|
||||
CHECK2(dict->alterTable(newTable) == 0,
|
||||
"TableRename failed");
|
||||
@ -1377,7 +1377,7 @@ runTableRenameSR(NDBT_Context* ctx, NDBT_Step* step){
|
||||
|
||||
const NdbDictionary::Table * oldTable = dict->getTable(pTabName.c_str());
|
||||
if (oldTable) {
|
||||
NdbDictionary::Table newTable = dict->getTableForAlteration(pTabName.c_str());
|
||||
NdbDictionary::Table newTable = *oldTable;
|
||||
newTable.setName(pTabNewName.c_str());
|
||||
CHECK2(dict->alterTable(newTable) == 0,
|
||||
"TableRename failed");
|
||||
|
Reference in New Issue
Block a user