Skip to content

Commit 9275b9a

Browse files
committed
Add corresponding doc to the changelog
1 parent bada409 commit 9275b9a

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,15 @@ for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/
139139
Similary, `only_tabels` and `except_tables` in `diesel.toml` are treated as regular expressions.
140140

141141
* Now you can sort column fields by name with the `column-sorting` option.
142-
It can be set to either `ordinal_position` (default) or `name`.
143-
This ensures stable sorting even if columns are removed and re-added.
142+
It can be set to either `ordinal_position` (default) or `name`.
143+
This ensures stable sorting even if columns are removed and re-added.
144+
145+
* The `Queryable<ST,DB>` trait was updated to be made faillible, in order to properly handle
146+
cases where you detect a data inconsistency between fields on deserialization
147+
(that e.g. was supposed to be made impossible by DB `CHECK`s). The `build` function now
148+
returns a
149+
[`diesel::deserialize::Result<Self>`](https://docs.diesel.rs/master/diesel/deserialize/type.Result.html)
150+
instead of a `Self`.
144151

145152
### Fixed
146153

0 commit comments

Comments
 (0)