1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-11953: support of brackets in UNION/EXCEPT/INTERSECT operations

This commit is contained in:
Oleksandr Byelkin
2018-05-22 19:08:39 +02:00
parent 1b981b9edb
commit de745ecf29
298 changed files with 36118 additions and 3473 deletions

View File

@ -3487,12 +3487,11 @@ Create_sp_func::create_with_db(THD *thd, LEX_CSTRING *db, LEX_CSTRING *name,
sph->add_used_routine(lex, thd, qname);
if (pkgname.m_name.length)
sp_handler_package_body.add_used_routine(lex, thd, &pkgname);
Name_resolution_context *ctx= lex->current_context();
if (arg_count > 0)
func= new (thd->mem_root) Item_func_sp(thd, lex->current_context(),
qname, sph, *item_list);
func= new (thd->mem_root) Item_func_sp(thd, ctx, qname, sph, *item_list);
else
func= new (thd->mem_root) Item_func_sp(thd, lex->current_context(),
qname, sph);
func= new (thd->mem_root) Item_func_sp(thd, ctx, qname, sph);
lex->safe_to_cache_query= 0;
return func;