Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
server: add sql to com_exec/com_fetch dispatch error log (#12174) #12191
cherry-pick #12174 to release-3.0
What problem does this PR solve?
More and more user use prepare stmt, but current dispatch error log we only can see packet binary info, we don't know which sql meet error.
What is changed and how it works?
add sql to error thrown in handleStmtExec and handleStmtFetch
after this PR, we can got
("select 1" now is in last, we can modify pingcap/errors to let be in front, but we need add msg first)