You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
For truncate table, if there is an error when updateSchemaVersion, before this PR, we will get error like below:
mysql>show tables;
+-----------------+
| Tables_in_test2 |
+-----------------+
| t |
+-----------------+1 row insetTime: 0.006s
mysql>truncate table t; -- actually the table t was already been truncated.
(1146, u"Table '(Schema ID 40063).(Table ID 40067)' doesn't exist")
mysql>truncate table t
(1146, u"Table '(Schema ID 40063).(Table ID 40067)' doesn't exist")
Manual mock an error as below:
2. What did you expect to see? (Required)
If run DDL failed, it should never task any effect.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
For
truncate table
, if there is an error whenupdateSchemaVersion
, before this PR, we will get error like below:Manual mock an error as below:
2. What did you expect to see? (Required)
If run DDL failed, it should never task any effect.
3. What did you see instead (Required)
4. Affected version (Required)
5. Root Cause Analysis
The text was updated successfully, but these errors were encountered: