Skip to content

JSON column type #379

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

Closed
luizpvas opened this issue Nov 7, 2015 · 3 comments
Closed

JSON column type #379

luizpvas opened this issue Nov 7, 2015 · 3 comments
Milestone

Comments

@luizpvas
Copy link
Contributor

luizpvas commented Nov 7, 2015

The JSON type was introduced in MySQL 5.7.8. Inserting values as string works fine, but selecting from the table returns this error:

--- FAIL: TestStorage (0.09s)
    storage_test.go:32: Unknown FieldType 245

I tried casting the JSON column to VARCHAR in the select but soon find out MySQL doesn't support it. Is there a workaround for dealing with JSON columns? Thanks!

@luizpvas
Copy link
Contributor Author

luizpvas commented Nov 8, 2015

I spent some time reading the source code I think I can add support for selecting JSON. Are you currently accepting pull requests?
Thanks again

@derekperkins
Copy link

👍

@julienschmidt julienschmidt added this to the v1.3 milestone Jan 13, 2016
@julienschmidt
Copy link
Member

PRs are always accepted!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants