shardingsphere
shardingsphere copied to clipboard
"ERROR 1046 (3D000): No database selected",`preview sql` can't act as nomale sql ,even though i appoint database in sql
Bug Report
Which version of ShardingSphere did you use?
f44e5d3c09a38139dbb2e1b0548816aa572ccc3c
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy
Expected behavior
preview select have same action like select
Actual behavior
Reason analyze (If you can)
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
- start proxy
- don't use db
- execute select 1 from db.table
Example codes for reproduce this issue (such as a github link).
@wsm12138 What does nomale SQL mean?
I will follow up @wsm12138
I will follow up @wsm12138
Thanks