Skip to content

Support passing values to select(fields...) for insert into ... select from #3068

Answered by weiznich
SadiinsoSnowfall asked this question in Q&A
Discussion options

You must be logged in to vote

I've converted this to a discussion as this clearly is not a bug report and it does not follow the issue template (that's mandatory).
To answer this as question: Yes this is already possible. You need to convert the rust value explicitly to a diesel query builder expression. This can be done by for example calling IntoSql::into_sql().

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SadiinsoSnowfall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3067 on March 04, 2022 12:12.