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

Function wrap_ident

sql/sql_base.cc:9001–9011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8999*/
9000
9001void wrap_ident(THD *thd, Item **conds)
9002{
9003 Item_direct_ref_to_ident *wrapper;
9004 DBUG_ASSERT((*conds)->type() == Item::FIELD_ITEM || (*conds)->type() == Item::REF_ITEM);
9005 Query_arena *arena, backup;
9006 arena= thd->activate_stmt_arena_if_needed(&backup);
9007 if ((wrapper= new (thd->mem_root) Item_direct_ref_to_ident(thd, (Item_ident *) (*conds))))
9008 (*conds)= (Item*) wrapper;
9009 if (arena)
9010 thd->restore_active_arena(arena, &backup);
9011}
9012
9013/**
9014 Prepare ON expression

Callers 2

prepareMethod · 0.85
setup_condsFunction · 0.85

Calls 3

restore_active_arenaMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected