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

JSON column support #54

Open
MrShemek opened this issue Nov 23, 2018 · 0 comments
Open

JSON column support #54

MrShemek opened this issue Nov 23, 2018 · 0 comments

Comments

@MrShemek
Copy link

Hi guys,

Are you going to add a JSON column support to wice_grid? Currently, I can display the values from JSON column but I cannot sort by them.

In MySQL, it is possible to sort by JSON value in two ways:

SELECT id, JSON_EXTRACT(attributes, '$.attribute') AS attribute FROM table ORDER BY attribute ASC
SELECT id, attributes->>'$.attribute' AS attribute FROM table ORDER BY attribute ASC

The problem is that wice_grid does not accept a string with dot as attribute value. It assumes that if the dot was passed, then someone tries to send both table and column name as attribute (which is incorrect).

Thanks,
Shemek

PS. if the answer is "no", then please do not close this issue. I will check changes required for JSON support and try to add them.

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

2 participants