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

Method create_item_func_setval

sql/sql_lex.cc:9295–9313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9293
9294
9295Item *LEX::create_item_func_setval(THD *thd, Table_ident *table_ident,
9296 Longlong_hybrid nextval, ulonglong round,
9297 bool is_used)
9298{
9299 TABLE_LIST *table;
9300 if (clause_that_disallows_subselect)
9301 {
9302 my_error(ER_SUBQUERIES_NOT_SUPPORTED, MYF(0),
9303 clause_that_disallows_subselect);
9304 return NULL;
9305 }
9306 if (unlikely(!(table= current_select->add_table_to_list(thd, table_ident, 0,
9307 TL_OPTION_SEQUENCE,
9308 TL_WRITE_ALLOW_WRITE,
9309 MDL_SHARED_WRITE))))
9310 return NULL;
9311 return new (thd->mem_root) Item_func_setval(thd, table, nextval, round,
9312 is_used);
9313}
9314
9315
9316Item *LEX::create_item_ident(THD *thd,

Callers

nothing calls this directly

Calls 2

my_errorFunction · 0.85
add_table_to_listMethod · 0.80

Tested by

no test coverage detected