-
Notifications
You must be signed in to change notification settings - Fork 11
sqlx's Get doesn't work with single return values #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm confused, the second approach actually works for primary types ( |
Perhaps passing a pointer to a pointer will work? I'll stop commenting. |
Yeah, database/sql doesn't understand map types, so there's no way for sqlx to convert from a |
But doesn't analogous cases work with sqlx and pq, for example? (I'm sorry if this is a stupid question, I'm not complaining, I'm just curious and want to understand more. Also, I'm not sure if I remember seeing this working in analogous cases.) |
If you return a table.* maybe I could see it working. On Tuesday, March 1, 2016, Giovanni T. Parra [email protected]
|
I don't know how to phrase this better, so here's an example:
considering
This works.
message
is populated according to theMessage
definitions.This doesn't work.
Now that I wrote, I can imagine why this happens and that it isn't an bug, but perhaps there is a way to make this kind of query easier. Neo4j should have a
RETURN m.*
statement, but it doesn't.The text was updated successfully, but these errors were encountered: