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/02/04 09:58:08 UTC

[GitHub] [shardingsphere] kindess opened a new issue #9321: When I execute an insert statement,I encountered an error : ‘Column count doesn't match value count at row 1’

kindess opened a new issue #9321:
URL: https://github.com/apache/shardingsphere/issues/9321


    Logic SQL: insert into tb_notice( title,contents,is_draft,is_cancel, is_send, add_time, is_sys, users,is_delete,user_id, is_attach,type,company_id, is_sms )  values ( ?,?,?,?,?,  ?,?, ?,?,?   ?,?,?,? )
   
   
   SQLStatement: ShardingInsertOptimizedStatement(super=ShardingConditionOptimizedStatement(tables=Tables(tables=[Table(name=tb_notice, alias=Optional.absent())], schema=Optional.absent()), shardingConditions=ShardingConditions(conditions=[ShardingCondition(routeValues=[ListRouteValue(columnName=user_id, tableName=tb_notice, values=[5])])]), encryptConditions=EncryptConditions(conditions=[])), tables=Tables(tables=[Table(name=tb_notice, alias=Optional.absent())], schema=Optional.absent()), insertColumns=ShardingInsertColumns(generateKeyColumnName=id, assistedQueryAndPlainColumnNames=[], regularColumnNames=[title, contents, is_draft, is_cancel, is_send, add_time, is_sys, users, is_delete, user_id, is_attach, type, company_id, is_sms]), values=[InsertValue(assignments=[ParameterMarkerExpressionSegment(startIndex=372, stopIndex=372, parameterMarkerIndex=0), ParameterMarkerExpressionSegment(startIndex=387, stopIndex=387, parameterMarkerIndex=1), ParameterMarkerExpressionSegment(startInde
 x=415, stopIndex=415, parameterMarkerIndex=2), ParameterMarkerExpressionSegment(startIndex=430, stopIndex=430, parameterMarkerIndex=3), ParameterMarkerExpressionSegment(startIndex=458, stopIndex=458, parameterMarkerIndex=4), ParameterMarkerExpressionSegment(startIndex=473, stopIndex=473, parameterMarkerIndex=5), ParameterMarkerExpressionSegment(startIndex=488, stopIndex=488, parameterMarkerIndex=6), ParameterMarkerExpressionSegment(startIndex=503, stopIndex=503, parameterMarkerIndex=7), ParameterMarkerExpressionSegment(startIndex=518, stopIndex=518, parameterMarkerIndex=8), ParameterMarkerExpressionSegment(startIndex=533, stopIndex=533, parameterMarkerIndex=9), ParameterMarkerExpressionSegment(startIndex=562, stopIndex=562, parameterMarkerIndex=10), ParameterMarkerExpressionSegment(startIndex=577, stopIndex=577, parameterMarkerIndex=11), ParameterMarkerExpressionSegment(startIndex=592, stopIndex=592, parameterMarkerIndex=12)])], generatedKey=Optional.of(GeneratedKey(columnName=id, g
 enerated=true, generatedValues=[564143474115346433])), units=[InsertOptimizeResultUnit(columnNames=[title, contents, is_draft, is_cancel, is_send, add_time, is_sys, users, is_delete, user_id, is_attach, type, company_id, is_sms, id], values=[ParameterMarkerExpressionSegment(startIndex=372, stopIndex=372, parameterMarkerIndex=0), ParameterMarkerExpressionSegment(startIndex=387, stopIndex=387, parameterMarkerIndex=1), ParameterMarkerExpressionSegment(startIndex=415, stopIndex=415, parameterMarkerIndex=2), ParameterMarkerExpressionSegment(startIndex=430, stopIndex=430, parameterMarkerIndex=3), ParameterMarkerExpressionSegment(startIndex=458, stopIndex=458, parameterMarkerIndex=4), ParameterMarkerExpressionSegment(startIndex=473, stopIndex=473, parameterMarkerIndex=5), ParameterMarkerExpressionSegment(startIndex=488, stopIndex=488, parameterMarkerIndex=6), ParameterMarkerExpressionSegment(startIndex=503, stopIndex=503, parameterMarkerIndex=7), ParameterMarkerExpressionSegment(startIndex
 =518, stopIndex=518, parameterMarkerIndex=8), ParameterMarkerExpressionSegment(startIndex=533, stopIndex=533, parameterMarkerIndex=9), ParameterMarkerExpressionSegment(startIndex=562, stopIndex=562, parameterMarkerIndex=10), ParameterMarkerExpressionSegment(startIndex=577, stopIndex=577, parameterMarkerIndex=11), ParameterMarkerExpressionSegment(startIndex=592, stopIndex=592, parameterMarkerIndex=12), ParameterMarkerExpressionSegment(startIndex=0, stopIndex=0, parameterMarkerIndex=13)], parameters=[%E5%BC%80%E4%BC%9A110%E5%8F%B7, %3Cp%3E%E5%BC%80%E4%BC%9A202%3C/p%3E, 0, 0, 1, 2017-06-22 07:07:34.0, false, 2,8,3,4,5,7, 0, 5, 0, %E5%8F%AF%E4%BB%A5%E8%BF%9F%E5%88%B0, 1, 564143474115346433], startIndexOfAppendedParameters=13)])
   
   
   Actual SQL: oa-notice ::: insert into tb_notice_6 ( title, contents, is_draft, is_cancel,is_send,add_time,is_sys, users,is_delete, user_id,is_attach,type,company_id,is_sms , id) values(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ::: [%E5%BC%80%E4%BC%9A110%E5%8F%B7, %3Cp%3E%E5%BC%80%E4%BC%9A202%3C/p%3E, 0, 0, 1, 2017-06-22 07:07:34.0, false, 2,8,3,4,5,7, 0, 5, 0, %E5%8F%AF%E4%BB%A5%E8%BF%9F%E5%88%B0, 1, 564143474115346433]


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



[GitHub] [shardingsphere] tuohai666 commented on issue #9321: When I execute an insert statement,I encountered an error : ‘Column count doesn't match value count at row 1’

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


   Please fill in the template:
   
   ```
   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response anymore and we cannot reproduce it on current information, we will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ### Expected behavior
   
   ### Actual behavior
   
   ### Reason analyze (If you can)
   
   ### 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.

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



[GitHub] [shardingsphere] kindess commented on issue #9321: When I execute an insert statement,I encountered an error : ‘Column count doesn't match value count at row 1’

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


   the id generatedValue Override the colum 'is_sms', i don`t know reason


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



[GitHub] [shardingsphere] tuohai666 commented on issue #9321: When I execute an insert statement,I encountered an error : ‘Column count doesn't match value count at row 1’

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


   Please fill in the template:
   
   ```
   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response anymore and we cannot reproduce it on current information, we will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ### Expected behavior
   
   ### Actual behavior
   
   ### Reason analyze (If you can)
   
   ### 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.

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



[GitHub] [shardingsphere] tuohai666 commented on issue #9321: When I execute an insert statement,I encountered an error : ‘Column count doesn't match value count at row 1’

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


   @kindess Can you tell the reason for close issue?


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



[GitHub] [shardingsphere] kindess closed issue #9321: When I execute an insert statement,I encountered an error : ‘Column count doesn't match value count at row 1’

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


   


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



[GitHub] [shardingsphere] kindess commented on issue #9321: When I execute an insert statement,I encountered an error : ‘Column count doesn't match value count at row 1’

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


   the id generatedValue Override the colum 'is_sms', i don`t know reason


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