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
35760c00
Commit
35760c00
authored
Jan 25, 2017
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-11557 Port MySQL-5.7 JSON tests to MariaDB.
more fixes.
parent
1782102d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
mysql-test/suite/json/r/json_no_table.result
mysql-test/suite/json/r/json_no_table.result
+14
-14
sql/item_jsonfunc.cc
sql/item_jsonfunc.cc
+6
-2
No files found.
mysql-test/suite/json/r/json_no_table.result
View file @
35760c00
No preview for this file type
sql/item_jsonfunc.cc
View file @
35760c00
...
...
@@ -605,6 +605,9 @@ String *Item_func_json_extract::val_str(String *str)
}
c_path
->
parsed
=
c_path
->
constant
;
}
if
(
args
[
n_arg
]
->
null_value
)
goto
return_null
;
}
possible_multiple_values
=
arg_count
>
2
||
...
...
@@ -666,7 +669,6 @@ String *Item_func_json_extract::val_str(String *str)
error:
report_json_error
(
js
,
&
je
,
0
);
return_null:
/* TODO: launch error messages. */
null_value
=
1
;
return
0
;
}
...
...
@@ -1958,6 +1960,9 @@ String *Item_func_json_insert::val_str(String *str)
json_scan_start
(
&
je
,
js
->
charset
(),(
const
uchar
*
)
js
->
ptr
(),
(
const
uchar
*
)
js
->
ptr
()
+
js
->
length
());
if
(
c_path
->
p
.
last_step
<
c_path
->
p
.
steps
)
goto
v_found
;
c_path
->
cur_step
=
c_path
->
p
.
steps
;
if
(
c_path
->
p
.
last_step
>=
c_path
->
p
.
steps
&&
...
...
@@ -2572,7 +2577,6 @@ String *Item_func_json_search::val_str(String *str)
js_error:
report_json_error
(
js
,
&
je
,
0
);
null_return:
/* TODO: launch error messages. */
null_value
=
1
;
return
0
;
}
...
...
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