rimal opened a new issue #5082: Getting No value specified for parameter 1 URL: https://github.com/apache/incubator-shardingsphere/issues/5082 ## Bug Report ### Which version of ShardingSphere did you use? 4.0.1 ### Which project did you use? Sharding-JDBC or Sharding-Proxy? sharding-jdbc-core https://mvnrepository.com/artifact/org.apache.shardingsphere/sharding-jdbc-core/4.0.1 ### Expected behavior Insert query needs to run as usual ### Actual behavior Getting `java.sql.SQLException: No value specified for parameter 1` ### Reason analyze (If you can) Please notice in the below log fragment, the `insertValueContexts` is empty. Also, in the logic and actual sql, all the columns mentioned in `columnNames` in SQLContext are not present. This is what is causing the error as per my understanding. ``` Logic SQL: insert into sample_table (client, create_date, source, key_string, ticket_id) values (?, ?, ?, ?, ?) SQLStatement: InsertSQLStatementContext(super=CommonSQLStatementContext(sqlStatement=org.apache.shardingsphere.sql.parser.sql.statement.dml.InsertStatement@3b8923ff, tablesContext=TablesContext(tables=[Table(name= sample_table, alias=Optional.absent())], schema=Optional.absent())), columnNames=[id, client, ticket_id, source, key_string, source_id, create_date, update_date], insertValueContexts=[]) Actual SQL: shard-1 ::: insert into sample_table (client, create_date, source, key_string, ticket_id) values (?, ?, ?, ?, ?) ```
---------------------------------------------------------------- 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] With regards, Apache Git Services
