MDEV-17793 follow-up: Also update SYS_VIRTUAL

This commit is contained in:
Marko Mäkelä 2018-11-22 11:17:55 +02:00
parent 740ce108a5
commit 23ff318d03

View file

@ -5247,6 +5247,7 @@ inline dberr_t dict_table_t::reassign_id(trx_t* trx)
"UPDATE SYS_TABLES SET ID=:new WHERE ID=:old;\n"
"UPDATE SYS_COLUMNS SET TABLE_ID=:new WHERE TABLE_ID=:old;\n"
"UPDATE SYS_INDEXES SET TABLE_ID=:new WHERE TABLE_ID=:old;\n"
"UPDATE SYS_VIRTUAL SET TABLE_ID=:new WHERE TABLE_ID=:old;\n"
"END;\n"
, FALSE, trx);
if (err == DB_SUCCESS) {