1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-11453 JSON_CONTAINS returns incorrect values.

The weird logic of json_contains was implemented.
This commit is contained in:
Alexey Botchkov
2016-12-11 01:12:33 +04:00
parent c868acdf65
commit 9320d8ae30
6 changed files with 237 additions and 92 deletions

View File

@@ -311,6 +311,7 @@ int json_skip_level(json_engine_t *j);
*/
#define json_value_scalar(je) ((je)->value_type > JSON_VALUE_ARRAY)
/*
Look for the JSON PATH in the json string.
Function can be called several times with same JSON/PATH to