Skip to content

Unsupported type NULL of column #1 #3828

Answered by joeydewaal
sidoki asked this question in Q&A
Discussion options

You must be logged in to vote

The query_as! macro maps the rows it finds (only subscriber_id in this case) to the given struct (Uuid), which would result in something like this:

let result = Uuid {
    subscriber_id: row.get(...),
};

I'm guessing here that the Uuid type is from the Uuid crate, which would result in an error. I'd recommend reading the docs for query_scalar and query_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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sidoki
Comment options

Answer selected by sidoki
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