cnlinjie opened a new issue #8633:
URL: https://github.com/apache/shardingsphere/issues/8633


   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub 
issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere 
Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more 
details. 
   If no response anymore and we cannot reproduce it on current information, we 
will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   只有主键,且主键字段为自增的表会出问题。
   提示:java.lang.StringIndexOutOfBoundsException: start -1, end 1, length 1
   ```
   DROP TABLE IF EXISTS shortcode;
   CREATE TABLE shortcode
   (
       id            bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
       PRIMARY KEY (id)
   ) ENGINE = InnoDB
     AUTO_INCREMENT = 1
     DEFAULT CHARSET = utf8mb4 COMMENT ='shortcode';
   ```
   改不改都可以,我加个字段就可以了。
   
   ### Which version of ShardingSphere did you use?
   
   4.1.1
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-JDBC
   
   ### Expected behavior
   
   insert success 
   
   ### Actual behavior
   
   error 
   java.lang.StringIndexOutOfBoundsException: start -1, end 1, length 1
   
   
   ### Reason analyze (If you can)
   
   
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   
   
   ### 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]


Reply via email to