-
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
Update the handling of COM_SLEEP #38612
Comments
Which version is the mysql? If it is mysql5, we should follow. If it is a newer version, from the point of compatibility, it is best to be silent. |
@xhebox , in mysql 5.7, it is also taken as an unknown command and error is raised. Source code: https://github.com/mysql/mysql-server/blob/c4f63caa8d9f30b2850672291e0ad0928dd89d0e/sql/sql_parse.cc#L1890 case COM_SLEEP:
case COM_CONNECT: // Impossible here
case COM_TIME: // Impossible from client
case COM_DELAYED_INSERT: // INSERT DELAYED has been removed.
case COM_END:
default:
my_message(ER_UNKNOWN_COM_ERROR, ER(ER_UNKNOWN_COM_ERROR), MYF(0));
break;
} I will create a PR on it if it is OK to you. |
Sure, thanks for your contribution. |
/assign |
Enhancement
The current tidb (commit
41518c9e02
) handlesCOM_SLEEP
specially and doesn't take it as an unknown command.However, the current mysql (commit
a246bad7
) takes it as an unknown command and raise an error.Should we follow the mysql implementation to return unknown error when handling this command?
The text was updated successfully, but these errors were encountered: