-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
server: reset bound arguments when it is executed by execute command #8645
Conversation
/run-all-tests tidb-test=pr/689 |
2 similar comments
/run-all-tests tidb-test=pr/689 |
/run-all-tests tidb-test=pr/689 |
/run-common-test tidb-test=pr/689 |
/run-integration-common-test tidb-test=pr/689 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add a test in the package of server?
Hard to do, @zimulala . go-sql-driver doesn't use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
comStmtSendLongData
will always append values no matter the arguments are used or not. It will causethe second statement will insert "ab" not "b" if the client use
comStmtSendLongData
.What is changed and how it works?
Reset the bound arguments when executing.
Check List
Tests
JDBC test case. https://github.com/pingcap/tidb-test/pull/689
Code changes
Related changes
PTAL @lysu
This change is