roodkcab opened a new issue #12717: URL: https://github.com/apache/shardingsphere/issues/12717
## Bug Report ### Which version of ShardingSphere did you use? master/5.0.0-RC1 ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ShardingSphere-Proxy ### Expected behavior native table privilege check should work without any exception ### Actual behavior got exception java.sql.SQLException: Column 'user' not found. ### Reason analyze (If you can) TABLE_PRIVILEGE_SQL should be "SELECT Db, Table_name, Table_priv, user, host FROM mysql.tables_priv WHERE (user, host) in (%s)", i.e. user and host must be included in selected column. ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. grand any table privilege on user in server.yaml will trigger this bug ### Example codes for reproduce this issue (such as a github link). none -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
