Unsupported type NULL of column #1 #3828
-
Beta Was this translation helpful? Give feedback.
Answered by
joeydewaal
Apr 17, 2025
Replies: 1 comment 1 reply
-
The let result = Uuid {
subscriber_id: row.get(...),
}; I'm guessing here that the However after reading the error message I think you're running into this issue, the only work around is to move away from the macro's in this case. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sidoki
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
query_as!
macro maps the rows it finds (onlysubscriber_id
in this case) to the given struct (Uuid
), which would result in something like this:I'm guessing here that the
Uuid
type is from theUuid
crate, which would result in an error. I'd recommend reading the docs forquery_scalar
andquery_scalar!
which is the macro (or function) you'd want.However after reading the error message I think you're running into this issue, the only work around is to move away from the macro's in this case.