apache / apache/shardingsphere
"ERROR 1046 (3D000): No database selected",`preview sql` can't act as nomale sql ,even though i appoint database in sql
Open
@RaigorJiang is already working on this.
Since Jan 29, 2023.
feature: DistSQL
type: bug
- Dominant language
- Java
- Stars
- 20.8k
- Forks
- 6.9k
- Avg merge
- 9h 55m
- Merged PRs (30d)
- 311
Description
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).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.