Closed RaigorJiang closed 2 hours ago
@RaigorJiang Thank you for your feedback. This is a bug for sql bind, HintManager also need to skip sql bind.
@RaigorJiang Thank you for your feedback. This is a bug for sql bind, HintManager also need to skip sql bind.
@strongduanmu Thank you!
Bug Report
Which version of ShardingSphere did you use?
5.5.2-SNAPSHOT 53d9616d18b5de1cd5f8e3bec00a3ea81dc47d02
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy and ShardingSphere-JDBC
Expected behavior
SQLHint can transparently execute SQL, and HintManager can also achieve the same effect.
Actual behavior
In the sharding scenario, query a sharding table node on a specified storage unit. The query is successful when SQLHint is used, but when use HintManager to do same operation, the message "Table or view does not exist" is displayed.
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
Create database in proxy
Register storage units
Create sharding table
CREATE TABLE
t_membership_order
(id
BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,order_id
BIGINT(20) UNSIGNED NOT NULL COMMENT 'order id', PRIMARY KEY (id
) );