summaryrefslogtreecommitdiff
path: root/sql/sql_window.cc
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2020-04-29 10:35:49 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2020-04-29 10:35:49 +0400
commitffc5e00e9c64d64b773178be4a4750ac1613879c (patch)
tree29078d5147e5fc9f35efcfb8819cca4320715564 /sql/sql_window.cc
parent2e6b21be4a8d0bf094da288cadff866f1bb38062 (diff)
downloadmariadb-git-ffc5e00e9c64d64b773178be4a4750ac1613879c.tar.gz
MDEV-21915 Server crashes in copy_fields,Item_func_group_concat::add …
…while using json_arrayagg() as a window function. We don't support JSON_ARRAYAGG and JSON_OBJECTAGG in window functions yet.
Diffstat (limited to 'sql/sql_window.cc')
-rw-r--r--sql/sql_window.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_window.cc b/sql/sql_window.cc
index a9a1dccf9f6..9e6ef6468e0 100644
--- a/sql/sql_window.cc
+++ b/sql/sql_window.cc
@@ -2936,6 +2936,14 @@ bool Window_func_runner::add_function_to_run(Item_window_func *win_func)
my_error(ER_NOT_SUPPORTED_YET, MYF(0),
"COUNT(DISTINCT) aggregate as window function");
return true;
+ case Item_sum::JSON_ARRAYAGG_FUNC:
+ my_error(ER_NOT_SUPPORTED_YET, MYF(0),
+ "JSON_ARRAYAGG() aggregate as window function");
+ return true;
+ case Item_sum::JSON_OBJECTAGG_FUNC:
+ my_error(ER_NOT_SUPPORTED_YET, MYF(0),
+ "JSON_OBJECTAGG() aggregate as window function");
+ return true;
default:
break;
}