summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2020-07-28 02:51:48 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2020-07-28 02:51:48 +0400
commit077d1c837ba10931f21a718dcfeb7bdc0cc073b2 (patch)
tree3c26fe777813e5d0c129f6ea243bf7f1006f33da /sql/sql_select.cc
parente0c0a15ee9e45ef17283b3a65ed4647b1477622a (diff)
downloadmariadb-git-bb-mdev-17399-hf.tar.gz
MDEV-17399 Add support for JSON_TABLE.bb-mdev-17399-hf
EXPLAIN and EXPLAIN FORMAT=JSON added for the JSON_TABLE.
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 7c8290d2b9f..bae1ab65f47 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -26694,6 +26694,9 @@ bool JOIN_TAB::save_explain_data(Explain_table_access *eta,
!((QUICK_ROR_INTERSECT_SELECT*)cur_quick)->need_to_fetch_row)
key_read=1;
+ if (table_list->table_function)
+ eta->push_extra(ET_TABLE_FUNCTION);
+
if (info)
{
eta->push_extra(info);