Skip to content

Commit 23ff318

Browse files
committed
MDEV-17793 follow-up: Also update SYS_VIRTUAL
1 parent 740ce10 commit 23ff318

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/innobase/handler/handler0alter.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5247,6 +5247,7 @@ inline dberr_t dict_table_t::reassign_id(trx_t* trx)
52475247
"UPDATE SYS_TABLES SET ID=:new WHERE ID=:old;\n"
52485248
"UPDATE SYS_COLUMNS SET TABLE_ID=:new WHERE TABLE_ID=:old;\n"
52495249
"UPDATE SYS_INDEXES SET TABLE_ID=:new WHERE TABLE_ID=:old;\n"
5250+
"UPDATE SYS_VIRTUAL SET TABLE_ID=:new WHERE TABLE_ID=:old;\n"
52505251
"END;\n"
52515252
, FALSE, trx);
52525253
if (err == DB_SUCCESS) {

0 commit comments

Comments
 (0)