You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "RaigorJiang (via GitHub)" <gi...@apache.org> on 2023/11/02 08:55:04 UTC
[I] NPE occurs when execute DML without use database [shardingsphere]
RaigorJiang opened a new issue, #28918:
URL: https://github.com/apache/shardingsphere/issues/28918
## Bug Report
### Which version of ShardingSphere did you use?
master dd44eb00aba6f63efdba6feb8ddb5845fcc5152a
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy
### Expected behavior
prompt `no database selected`
### Actual behavior
```sql
mysql> INSERT INTO t_order (order_id, user_id, status) VALUES
-> (1,1,'OK213521631237232');
ERROR 30000 (HY000): Unknown exception: Cannot invoke "String.toLowerCase()" because "databaseName" is null
```
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
1. Start proxy without any configuration file
2. Execute any DML statement
--
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] NPE occurs when execute DML without use database [shardingsphere]
Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #28918:
URL: https://github.com/apache/shardingsphere/issues/28918#issuecomment-1826236574
> I've already fixed it and submitted PR , PTAL
@YaoFly Merged, thank you!
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] NPE occurs when execute DML without use database [shardingsphere]
Posted by "YaoFly (via GitHub)" <gi...@apache.org>.
YaoFly commented on issue #28918:
URL: https://github.com/apache/shardingsphere/issues/28918#issuecomment-1825174332
I've already fixed it and submitted PR , PTAL
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] NPE occurs when execute DML without use database [shardingsphere]
Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang closed issue #28918: NPE occurs when execute DML without use database
URL: https://github.com/apache/shardingsphere/issues/28918
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org