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
In SeaORM prior 0.11, running the following query twice works fine:
INSERT INTO \"group_user_membership\" (\"user_id\", \"group_id\") VALUES ('01GVEMDSKK33QX8ET4601B4HG7', '00000000000000000000000000') ON CONFLICT (\"group_id\", \"user_id\") DO NOTHING"
Running it on 0.11.x results in DbErr::RecordNotInserted
Steps to Reproduce
Insert a record
Insert a conflicting record instructing to do nothing on conflict
Expected Behavior
No error, not records inserted.
Actual Behavior
Get an error: DbErr::RecordNotInserted
Reproduces How Often
Every single time.
Workarounds
Check for DbErr::RecordNotInserted prior bubbling error up the stack.
Description
In SeaORM prior 0.11, running the following query twice works fine:
Running it on 0.11.x results in
DbErr::RecordNotInserted
Steps to Reproduce
Expected Behavior
No error, not records inserted.
Actual Behavior
Get an error:
DbErr::RecordNotInserted
Reproduces How Often
Every single time.
Workarounds
Check for
DbErr::RecordNotInserted
prior bubbling error up the stack.Reproducible Example
https://github.com/andoriyu/seaorm-issues/blob/main/src/lib.rs#L39-L53
Versions
0.11.0 and 0.11.1
The text was updated successfully, but these errors were encountered: