We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f68380 + 681e60d commit 67c677eCopy full SHA for 67c677e
src/pg/error_helper.rs
@@ -20,6 +20,8 @@ impl From<ErrorHelper> for diesel::result::Error {
20
SqlState::FOREIGN_KEY_VIOLATION => ForeignKeyViolation,
21
SqlState::T_R_SERIALIZATION_FAILURE => SerializationFailure,
22
SqlState::READ_ONLY_SQL_TRANSACTION => ReadOnlyTransaction,
23
+ SqlState::NOT_NULL_VIOLATION => NotNullViolation,
24
+ SqlState::CHECK_VIOLATION => CheckViolation,
25
_ => Unknown,
26
};
27
0 commit comments