You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/03/04 12:00:10 UTC

[GitHub] [incubator-shardingsphere] songxu opened a new issue #1966: Insert data to all sharding table when the value of sharing column is null.

songxu opened a new issue #1966: Insert data to all sharding table when the value of sharing column is null.
URL: https://github.com/apache/incubator-shardingsphere/issues/1966
 
 
   # Version
   ## io.shardingsphere.sharding-jdbc-spring-boot-starter:3.0.0
   io.shardingsphere Configuration:
   sharding.jdbc.datasource.names=ds
   sharding.jdbc.datasource.ds.type=org.apache.commons.dbcp.BasicDataSource
   sharding.jdbc.datasource.ds.driver-class-name=com.mysql.jdbc.Driver
   sharding.jdbc.config.sharding.tables.test_record.actual-data-nodes=ds.test_record_${0..9}
   sharding.jdbc.config.sharding.tables.test_record.table-strategy.inline.sharding-column=record_id
   sharding.jdbc.config.sharding.tables.test_record.table-strategy.inline.algorithm-expression=test_record_${record_id % 10}
   sharding.jdbc.config.sharding.default-data-source-name=ds
   sharding.jdbc.config.props.sql.show=true
   
   ## Mybatis Version: 3.4.6
   
   # Issue:
   Insert record to sharing table: test_record with mybatis insertSelective, if the value of sharding-column:record_id is null, it will insert records to all sharing tables( test_record_0...,test_record_9).
   # Expected result:
   throw exception instead of insert records to all sharing tables.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services