Created
September 29, 2015 11:48
-
-
Save runa/c27f2fb28b371baaff2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> select json_extract('{"phones":["555-5555"],"emails":["info@x.com.ar"]}',"$.emails[0]"); | |
+----------------------------------------------------------------------------------+ | |
| json_extract('{"phones":["555-5555"],"emails":["info@x.com.ar"]}',"$.emails[0]") | | |
+----------------------------------------------------------------------------------+ | |
| NULL | | |
+----------------------------------------------------------------------------------+ |
Author
runa
commented
Sep 29, 2015
This is a bug. Funny, but select json_extract('{"f":["foo"],"b":["bar", "baz"]}',"$.b[1]"); works
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment