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
502b7695
Commit
502b7695
authored
Apr 20, 2021
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-17399 JSON_TABLE.
Aftermerge fixes.
parent
41e368f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
mysql-test/suite/json/r/json_table.result
mysql-test/suite/json/r/json_table.result
+1
-1
mysql-test/suite/perfschema/r/start_server_low_digest_sql_length.result
...te/perfschema/r/start_server_low_digest_sql_length.result
+2
-2
sql/json_table.cc
sql/json_table.cc
+2
-1
No files found.
mysql-test/suite/json/r/json_table.result
View file @
502b7695
...
...
@@ -585,7 +585,7 @@ select a from json_table('[[]]', '$' columns(a char(8) path '$' error on error))
ERROR HY000: Can't store an array or an object in the scalar column 'a' of JSON_TABLE 't'.
show warnings;
Level Code Message
Error 417
7
Can't store an array or an object in the scalar column 'a' of JSON_TABLE 't'.
Error 417
8
Can't store an array or an object in the scalar column 'a' of JSON_TABLE 't'.
#
# MDEV-JSON_TABLE: CREATE TABLE ignores NULL ON ERROR (implicit or explicit) and fails.
#
...
...
mysql-test/suite/perfschema/r/start_server_low_digest_sql_length.result
View file @
502b7695
...
...
@@ -8,5 +8,5 @@ SELECT 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1
####################################
SELECT event_name, digest, digest_text, sql_text FROM events_statements_history_long;
event_name digest digest_text sql_text
statement/sql/select
36b60eb4c0a269b4d8e3c2037f5c6c36
SELECT ? + ? + SELECT ...
statement/sql/truncate
eddd22a5c210f96a5160acbb5d7563b3
TRUNCATE TABLE truncat...
statement/sql/select
5169a25ba78dc5dc99487237f8459aa8
SELECT ? + ? + SELECT ...
statement/sql/truncate
48bb01298bb30bda20be141838160182
TRUNCATE TABLE truncat...
sql/json_table.cc
View file @
502b7695
...
...
@@ -716,6 +716,7 @@ bool Create_json_table::add_json_table_fields(THD *thd, TABLE *table,
uint
fieldnr
=
0
;
MEM_ROOT
*
mem_root_save
=
thd
->
mem_root
;
List_iterator_fast
<
Json_table_column
>
jc_i
(
jt
->
m_columns
);
Column_derived_attributes
da
(
NULL
);
DBUG_ENTER
(
"add_json_table_fields"
);
thd
->
mem_root
=
&
table
->
mem_root
;
...
...
@@ -736,7 +737,7 @@ bool Create_json_table::add_json_table_fields(THD *thd, TABLE *table,
sql_f
->
charset
=
&
my_charset_utf8mb4_general_ci
;
if
(
sql_f
->
prepare_stage1
(
thd
,
thd
->
mem_root
,
table
->
file
,
table
->
file
->
ha_table_flags
()))
table
->
file
->
ha_table_flags
()
,
&
da
))
goto
err_exit
;
while
((
jc2
=
it2
++
)
!=
jc
)
...
...
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