You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even removing foreign key constraints, you'll get a constrain error:
Constraint Error: Duplicate key "id: 5d7739ff-012f-4368-ad52-d6a6a58f2699" violates primary key constraint. If this is an unexpected constraint violation please double check with the known index limitations section in our documentation (docs - sql - indexes).
The current documentation doesn't show RETURNING as part of UPDATE statement so I'd be happier even if you throw out wrong/illegal SQL error than this vague constraint error.
Note that once I remove returning clause, it would work.
see #8988 for more info.
What happens?
I can't use
UPDATE .. RETURNING
on a table withPRIMARY KEY
To Reproduce
This produces:
This works, as a workaround:
Removing the
PRIMARY KEY
also solves the problemOS:
Microsoft Windows [Version 10.0.22621.1555]
DuckDB Version:
v0.7.2-dev2430
DuckDB Client:
JDBC
Full Name:
Lukas Eder
Affiliation:
Data Geekery / jOOQ
Have you tried this on the latest
master
branch?Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
The text was updated successfully, but these errors were encountered: