-
Has anyone else had this issue? I'm trying a query with the form How do you get sqlx to recognize the |
Beta Was this translation helpful? Give feedback.
Answered by
abonander
Mar 1, 2022
Replies: 1 comment
-
If this is with the macros, you need to give the column a name that is a valid Rust identifier. The default name for the column here is literally Try |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
leshow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If this is with the macros, you need to give the column a name that is a valid Rust identifier. The default name for the column here is literally
min(column)
so that's not gonna work.Try
SELECT MIN(column) AS column_min FROM table