1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

fix(dbcon) MCOL-5812 server crash related to stored functions

Using the stored function's return value as an argument
for another function was handled incorrectly, leading
to a server crash.
This commit is contained in:
Aleksei Antipovskii
2024-10-18 19:13:47 +02:00
committed by Leonid Fedorov
parent bd9dfdf38c
commit 42be2cb7e0
3 changed files with 327 additions and 0 deletions

View File

@ -364,6 +364,10 @@ void item_check(Item* item, bool* unsupported_feature)
bool check_user_var(SELECT_LEX* select_lex)
{
if (!select_lex) {
// There are definitely no user vars if select_lex is null
return false;
}
List_iterator_fast<Item> it(select_lex->item_list);
Item* item;
bool is_user_var_func = false;