CheerwayRen opened a new issue #14266:
URL: https://github.com/apache/shardingsphere/issues/14266
The version I use is
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc-core</artifactId>
<version>5.0.0-beta</version>
</dependency>
When I do not specify the primary key, the insert statement will throw an
SQLExceptionis :
java.sql.SQLIntegrityConstraintViolationException: Column 'XXX' cannot be
null
When the program runs to mehtod
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback#execute(org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutionUnit,
boolean, java.util.Map<java.lang.String,java.lang.Object>)
<img width="656" alt="image"
src="https://user-images.githubusercontent.com/38515283/147214333-a8f1624e-9e22-4220-91a7-a228d20ccbc4.png">
<img width="728" alt="1c0373144f741cdf3942d8178e3c02d"
src="https://user-images.githubusercontent.com/38515283/147214735-3f5a71af-37dd-46da-ae90-ff89e7f32a5b.png">
the exception is caught and not thrown,Is this the design?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]