Commit ecd87ed
authored
Map postgres :restrict_violation to :foreign_key constraint (#713)
In PostgreSQL 18, this error code is now used for `ON DELETE RESTRICT`
constraint violation. The existing `:foreign_key_violation` error code
is raised for `ON DELETE NO ACTION`.
The behaviour changed in postgres commit
postgres/postgres@086c84b
The change is backwards compatible as the error code was not previously
raised even though it existed in the postgres documentation. It is now
correctly raised for the `ON DELETE RESTRICT` constraint.1 parent 57d7c4f commit ecd87ed
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
0 commit comments