Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
75a51818
Commit
75a51818
authored
Dec 05, 2016
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-11448 Assertion `*p_cur_step < p->last_step' failed in strings/json_lib.c handle_match.
Test case added.
parent
fe6d0a07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
mysql-test/r/func_json.result
mysql-test/r/func_json.result
+3
-0
mysql-test/t/func_json.test
mysql-test/t/func_json.test
+1
-0
No files found.
mysql-test/r/func_json.result
View file @
75a51818
...
@@ -73,6 +73,9 @@ json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[4]', 'x')
...
@@ -73,6 +73,9 @@ json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[4]', 'x')
select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1].b[0]', 'x');
select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1].b[0]', 'x');
json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1].b[0]', 'x')
json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1].b[0]', 'x')
["a", {"b": [ "x",1, 2]}, [3, 4]]
["a", {"b": [ "x",1, 2]}, [3, 4]]
select json_array_insert('true', '$', 1);
json_array_insert('true', '$', 1)
NULL
select json_contains('{"k1":123, "k2":345}', '123', '$.k1');
select json_contains('{"k1":123, "k2":345}', '123', '$.k1');
json_contains('{"k1":123, "k2":345}', '123', '$.k1')
json_contains('{"k1":123, "k2":345}', '123', '$.k1')
1
1
...
...
mysql-test/t/func_json.test
View file @
75a51818
...
@@ -28,6 +28,7 @@ select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[2]', 'x');
...
@@ -28,6 +28,7 @@ select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[2]', 'x');
select
json_array_insert
(
'["a", {"b": [1, 2]}, [3, 4]]'
,
'$[3]'
,
'x'
);
select
json_array_insert
(
'["a", {"b": [1, 2]}, [3, 4]]'
,
'$[3]'
,
'x'
);
select
json_array_insert
(
'["a", {"b": [1, 2]}, [3, 4]]'
,
'$[4]'
,
'x'
);
select
json_array_insert
(
'["a", {"b": [1, 2]}, [3, 4]]'
,
'$[4]'
,
'x'
);
select
json_array_insert
(
'["a", {"b": [1, 2]}, [3, 4]]'
,
'$[1].b[0]'
,
'x'
);
select
json_array_insert
(
'["a", {"b": [1, 2]}, [3, 4]]'
,
'$[1].b[0]'
,
'x'
);
select
json_array_insert
(
'true'
,
'$'
,
1
);
select
json_contains
(
'{"k1":123, "k2":345}'
,
'123'
,
'$.k1'
);
select
json_contains
(
'{"k1":123, "k2":345}'
,
'123'
,
'$.k1'
);
select
json_contains
(
'"you"'
,
'"you"'
);
select
json_contains
(
'"you"'
,
'"you"'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment