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
Thanks for opening this bug report. This is expected behaviour given your diesel version. The skip_insertion option is not contained in any release yet. The documentation lists all supported field attributes for certain derives.
Shouldn't the error message be different at least? Because while it may not yet be supported in that version; the error message is at the very least confusing.
That's correct. Seems like we somehow accidentally backported a PR that changes the error message only. I'm happy to merge a PR that reverts that + prepares another release. 45915ac is the relevant commit
Setup
Compiling the following:
with
Versions
Feature Flags
Problem Description
It errors out with:
In general, the following work (as in, they don't error out in the derive macro):
embed
column_name = ...
sql_type = ...
serialize_as = ...
deserialize_as = ...
select_expression = ...
select_expression_type = ...
And these don't work:
skip_insertion
treat_none_as_default_value
treat_none_as_null
What are you trying to accomplish?
Trying to use the
Insertable
derive macroWhat is the expected output?
Either that it doesn't error out, or in case that the input is incorrect, an error message that is less confusing
What is the actual output?
An error message that would suggest that the input is well formed
Are you seeing any additional errors?
No
Steps to reproduce
cargo new --bin diesel-test
, changeCargo.toml
&main.rs
appropriately,cargo +stable build
Checklist
closed if this is not the case)
The text was updated successfully, but these errors were encountered: