RaigorJiang opened a new pull request #12777: URL: https://github.com/apache/shardingsphere/pull/12777
Fixes #12762, add rule type information in drop failed message. Changes proposed in this pull request: - add method `getType()` for interface `ShardingSphereRule`. - when drop resource which is in used, shows what type of rule is using it, so users can query the corresponding configuration. ### Before ```sql mysql> drop resource ds_in_used; ERROR 1101 (C1101): Resources [ds_in_used] in the rule are still in used. ``` ### After ```sql mysql> drop resource ds_in_used; ERROR 1101 (C1101): Resource [ds_in_used] is still used by [ShardingRule, SingleTableRule]. ``` -- 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]
