lanchengx opened a new issue #12017: URL: https://github.com/apache/shardingsphere/issues/12017
## Bug Report ### Which version of ShardingSphere did you use? master branch ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ShardingSphere-Proxy ### Expected behavior execution succeed ### Actual behavior Message: Datasource or ShardingSphere rule does not exist ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. - Pre-conditions: There are three schemas in the proxy, two of which are complete, including resources and rules. The other schema is empty. - Execute `SHOW VARIABLES LIKE 'lower_case_%';` - The client prompts `Message: Datasource or ShardingSphere rule does not exist` ### Reason analyze (If you can) When executing `SHOW VARIABLES LIKE 'lower_case_%';`, it actually uses `UnicastDatabaseBackendHandler` to execute logic. It obtains a `schema` through `getFirstSchemaName()`, but this schema may be empty, so `RuleNotExistedException` is thrown when checking.  -- 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]
