-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
different behavior between mysql and tidb about use clause in transaction #26688
Comments
@morgo do you reckon that this may have something linked with multi statement switch? |
I don't think it is. In this case the user has explictly opted in to multi-statement, so the switch is non-applicable. It looks like a different bug, where the |
I can confirm this bug still exists in 3.0 and 4.0, so it has been present for some time. |
Please edit this comment or add a new comment to complete the following informationNot a bug
Duplicate bug
BugNote: Make Sure that 'component', and 'severity' labels are added 1. Root Cause Analysis (RCA) (optional)2. Symptom (optional)3. All Trigger Conditions (optional)4. Workaround (optional)5. Affected versions6. Fixed versions |
Bug Report
1. Minimal reproduce step (Required)
The actual problem comes from the
syncer
tool which is deprecated now, we have not switched toDM
yet.2. What did you expect to see? (Required)
MariaDB(10.3.29) produces:
OK
3. What did you see instead (Required)
TiDB(v5.1.0) produces :
Error 1046: No database selected
4. What is your TiDB version? (Required)
Release Version: v5.1.0
Edition: Community
Git Commit Hash: 8acd5c8
Git Branch: release-5.1
UTC Build Time: 2021-07-28 04:40:26
GoVersion: go1.16.5
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
The text was updated successfully, but these errors were encountered: