Skip to content

Instantly share code, notes, and snippets.

@elenst
Created June 26, 2017 12:57
Show Gist options
  • Save elenst/c2c1a2419ad5431e1e5722c3792fc993 to your computer and use it in GitHub Desktop.
Save elenst/c2c1a2419ad5431e1e5722c3792fc993 to your computer and use it in GitHub Desktop.
MariaDB [test]> create function json_get_item returns string soname 'ha_connect.so';
Query OK, 0 rows affected (0.02 sec)
MariaDB [test]> select json_get_item('{"id": 1}', 'id:*');
+------------------------------------+
| json_get_item('{"id": 1}', 'id:*') |
+------------------------------------+
| NULL |
+------------------------------------+
1 row in set (0.00 sec)
MariaDB [test]> select @@version;
+----------------------+
| @@version |
+----------------------+
| 10.2.7-MariaDB-debug |
+----------------------+
1 row in set (0.00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment