Also match "column doesn't have a default value" error code (1364)
@@ -147,7 +147,7 @@ impl Statement {
1062 | 1586 | 1859 => DatabaseErrorKind::UniqueViolation,
1216 | 1217 | 1451 | 1452 | 1830 | 1834 => DatabaseErrorKind::ForeignKeyViolation,
1792 => DatabaseErrorKind::ReadOnlyTransaction,
- 1048 => DatabaseErrorKind::NotNullViolation,
+ 1048 | 1364 => DatabaseErrorKind::NotNullViolation,
3819 => DatabaseErrorKind::CheckViolation,
_ => DatabaseErrorKind::__Unknown,
}
