Closed yvkm closed 2 months ago
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
shardingsphere-jdbc-core-spring-boot-starter
is deprecated and removed in 5.3.0, please try new version and use ShardingSphere Driver.
Bug Report
When I insert a SQL statement without primary key, an SQL syntax error occurs.
DDL :
CREATE TABLE
config(
config_idint(11) NOT NULL AUTO_INCREMENT ,
typetinyint(2) NULL DEFAULT NULL ,
datevarchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
valuevarchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
create_timedatetime NULL DEFAULT NULL,
update_timedatetime NULL DEFAULT NULL,
creatorvarchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
updatorvarchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, PRIMARY KEY (
config_id) USING BTREE, INDEX
date(
date) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 832 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
log:
Which version of ShardingSphere did you use?
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
insert the SQL without primary key should work, because primary key is auto-increament.
Actual behavior
no primary key lead to fail.
Reason analyze (If you can)
After I insert this SQL with primary key, It works fine.