Closed gerayking closed 1 year ago
This problem need to be fixed.
I think keyspace, shard, dbName should be removed in onlineddl.Executor
I think keyspace, shard, dbName should be removed in onlineddl.Executor
Perhaps retaining the shard is a better option, as removing it might be too costly.
Overview of the Issue
Currently, the DDL statement cannot select the correct database even after invoking 'use database'; it continues to default to the
mysql
database.I've noticed that the QueryExecutor doesn't record the dbName passed from vtgate.Should we consider fixing this in vtgate or vttablet?Reproduction Steps
Binary Version
No response
Operating System and Environment details
No response
Log Fragments
No response