chentianming11 opened a new issue #6374:
URL: https://github.com/apache/shardingsphere/issues/6374
## Bug Report
### Which version of ShardingSphere did you use?
4.0.1
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
### Expected behavior
mysql insert successed, even the insert field contains page, key, source,
offline.
### Actual behavior
mysql insert failed! if the insert field contains page, key, source, offline.
### Reason analyze (If you can)
Because the insert field contains certain mysql reserved keywords, the
insert fails. But I think this function should be supported, because using
mysql directly can be inserted successfully.
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule
configuration, when exception occur etc.
no sharding configuration for this table,
INSERT INTO hc_test_person ( id,offline,key ) VALUES( ?,?,? )
### Error updating database. Cause: java.sql.SQLException: No value
specified for parameter 1
### The error may exist in
com/ke/jiaoyi/helicarrier/demo/mapper/TestPersonMapper.java (best guess)
### The error may involve
com.ke.jiaoyi.helicarrier.demo.mapper.TestPersonMapper.insertSelective-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO hc_test_person ( id,offline,key ) VALUES( ?,?,? )
### Cause: java.sql.SQLException: No value specified for parameter 1
; bad SQL grammar []; nested exception is java.sql.SQLException: No value
specified for parameter 1
### Example codes for reproduce this issue (such as a github link).
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]