1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +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 ce86d1025a
commit ca6c35abdd
3 changed files with 327 additions and 0 deletions

View File

@ -332,6 +332,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;