You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/06/29 14:08:48 UTC

[GitHub] [shardingsphere] chenqin091017 opened a new issue #11063: Can't throw SQLIntegrityConstraintViolationException:Duplicate entry "A0001-100001" for key "foo_45.id_id0"

chenqin091017 opened a new issue #11063:
URL: https://github.com/apache/shardingsphere/issues/11063


   
   ### Which version of ShardingSphere did you use?
   shardingsphere-jdbc-core 5.0.0-beta
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   ### Expected behavior
   table foo, column id、id0 and value is a index,these type is unique。
   ![sql](https://user-images.githubusercontent.com/17311435/123812182-7469af80-d926-11eb-9876-aa9384e05a40.png)
   Logic SQL:`insert into foo(id,id0,value) values(?,?,?)`
   Actual SQL:`insert into foo_45(id,id0,value) values(?,?,?)`
   can throw SQLException
   ### Actual behavior
   can not throw SQLException
   ### Reason analyze (If you can)
   ![exception](https://user-images.githubusercontent.com/17311435/123810743-3b7d0b00-d925-11eb-87b5-4546d7bbe2c4.png)
   
   ### 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.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] chenqin091017 closed issue #11063: Can't throw SQLIntegrityConstraintViolationException:Duplicate entry "ID45_ID045_ba" for key "foo_45.id_id0_value"

Posted by GitBox <gi...@apache.org>.
chenqin091017 closed issue #11063:
URL: https://github.com/apache/shardingsphere/issues/11063


   


-- 
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



[GitHub] [shardingsphere] avalon5666 commented on issue #11063: Can't throw SQLIntegrityConstraintViolationException:Duplicate entry "ID45_ID045_ba" for key "foo_45.id_id0_value"

Posted by GitBox <gi...@apache.org>.
avalon5666 commented on issue #11063:
URL: https://github.com/apache/shardingsphere/issues/11063#issuecomment-871062548


   Fixed by #10845, You can build from master and test again.


-- 
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



[GitHub] [shardingsphere] avalon5666 commented on issue #11063: Can't throw SQLIntegrityConstraintViolationException:Duplicate entry "ID45_ID045_ba" for key "foo_45.id_id0_value"

Posted by GitBox <gi...@apache.org>.
avalon5666 commented on issue #11063:
URL: https://github.com/apache/shardingsphere/issues/11063#issuecomment-871027294


   I will check this.


-- 
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