Skip to content

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

Merged
methane merged 1 commit intogo-sql-driver:masterfrom
a8m:a8m/raw-json
Feb 18, 2020
Merged

stmt: add json.RawMessage for converter and prepared statement#1059
methane merged 1 commit intogo-sql-driver:masterfrom
a8m:a8m/raw-json

Conversation

@a8m
Copy link
Copy Markdown
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

@a8m a8m requested a review from julienschmidt February 10, 2020 15:57
@a8m a8m requested a review from methane February 14, 2020 08:53
@a8m
Copy link
Copy Markdown
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.

2 participants