MCPcopy Create free account
hub / github.com/MariaDB/server / create_item_query_expression

Method create_item_query_expression

sql/sql_lex.cc:11590–11613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11588*/
11589
11590Item *LEX::create_item_query_expression(THD *thd,
11591 st_select_lex_unit *unit)
11592{
11593 if (clause_that_disallows_subselect)
11594 {
11595 my_error(ER_SUBQUERIES_NOT_SUPPORTED, MYF(0),
11596 clause_that_disallows_subselect);
11597 return NULL;
11598 }
11599
11600 // Add the subtree of subquery to the current SELECT_LEX
11601 SELECT_LEX *curr_sel= select_stack_head();
11602 DBUG_ASSERT(current_select == curr_sel ||
11603 (curr_sel == NULL && current_select == &builtin_select));
11604 if (!curr_sel)
11605 {
11606 curr_sel= &builtin_select;
11607 curr_sel->register_unit(unit, &curr_sel->context);
11608 curr_sel->add_statistics(unit);
11609 }
11610
11611 return new (thd->mem_root)
11612 Item_singlerow_subselect(thd, unit->first_select());
11613}
11614
11615
11616SELECT_LEX_UNIT *LEX::parsed_select_expr_start(SELECT_LEX *s1, SELECT_LEX *s2,

Callers

nothing calls this directly

Calls 4

my_errorFunction · 0.85
register_unitMethod · 0.80
add_statisticsMethod · 0.80
first_selectMethod · 0.80

Tested by

no test coverage detected