Skip to content
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

stmt: add json.RawMessage for converter and prepared statement #1059

Merged
merged 1 commit into from Feb 18, 2020

Conversation

a8m
Copy link
Contributor

@a8m a8m commented Feb 10, 2020

Following #1058, in order for the driver.Value to get as a json.RawMessage, the converter should accept it as a valid value, and handle it as bytes in case where interpolation is disabled

Description

Please explain the changes you made here.

Checklist

  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary
  • Added myself / the copyright holder to the AUTHORS file

cc @alexsn

packets.go Outdated Show resolved Hide resolved
statement.go Show resolved Hide resolved
@a8m
Copy link
Contributor Author

a8m commented Feb 18, 2020

Hey guys,
Any update on this?

Following go-sql-driver#1058, in order for the driver.Value to get as a json.RawMessage,
the converter should accept it as a valid value, and handle it as bytes in
case where interpolation is disabled
@methane methane merged commit 3d8a029 into go-sql-driver:master Feb 18, 2020
tz70s pushed a commit to tz70s/mysql that referenced this pull request Sep 5, 2020
…l-driver#1059)

Following go-sql-driver#1058, in order for the driver.Value to get as a json.RawMessage,
the converter should accept it as a valid value, and handle it as bytes in
case where interpolation is disabled
tz70s pushed a commit to tz70s/mysql that referenced this pull request Sep 5, 2020
…l-driver#1059)

Following go-sql-driver#1058, in order for the driver.Value to get as a json.RawMessage,
the converter should accept it as a valid value, and handle it as bytes in
case where interpolation is disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants