-
Notifications
You must be signed in to change notification settings - Fork 2.3k
textRows.Next returns only []byte Values #366
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
No. |
I see. Thanks for clarifying. Doesn't the typeswitch in the binary protocol also unmarshal VARCHAR and other string types as We're writing a user-facing feature for interfacing with the user's database, where the results are serialized as JSON. Because all of those cases are stored in the map as |
I'm using the database/sql driver implementation on a *DB obtained using sql.Open.
My code looks a bit like this.
All values unmarshaled into dataRows are of
[]byte
type, including numbers, strings, etc. This is causing problems.Would you be open to a pull request implementing the type switch from
binaryRows
ontextRows
?The text was updated successfully, but these errors were encountered: