-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No value specified for parameter exception when use postgresql on duplicate #34424
Comments
Could you kindly double-check to ensure that the parameter indexes in the |
The bug still exists, in the pr34425, it`s work ok |
But the pull request has not finished yet. |
Bug Report
Which version of ShardingSphere did you use?
5.5.1
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
use postgresql, the sql is " insert into transactional_table(id,user_name) values (?,?) on conflict(id) do update set user_name = ? ", hope this sql executed success
I code
Actual behavior
executed error, the error message: 32280
### Reason analyze (If you can)
the reason:
In InsertStatementBinder, the method "copy", sqlStatement.getOnDuplicateKeyColumns().ifPresent(result::setOnDuplicateKeyColumns);
but PostgreSQLInsertStatement missing setOnDuplicateKeyColumns
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).
The text was updated successfully, but these errors were encountered: