Replies: 1 comment 4 replies
-
It could be that you are running into #3387. Could you try with sqlx version |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I’m looking for some help.
Currently I use a struct to fetch data from a MySQL database, and this struct has a enum field. Like this (shortened, there are other fields):
The enum column is defined like this (my query returns only
manure
variant):While using the
query_as!()
macro I can use this syntax in the select to get the whole thing work :But with the
query_as_with()
function, using the same syntax or not I could not get it to work. I get this kind of error :I’ve tried everything for several days, no success. Is it possible ? I must use
query_as_with()
function because I need my query to be build dynamically. I found several examples of what I’ve done with the macro, but no enum example with the function.Beta Was this translation helpful? Give feedback.
All reactions