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

Method create_item_func_nextval

sql/sql_lex.cc:9221–9237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9219
9220
9221Item *LEX::create_item_func_nextval(THD *thd, Table_ident *table_ident)
9222{
9223 TABLE_LIST *table;
9224 if (clause_that_disallows_subselect)
9225 {
9226 my_error(ER_SUBQUERIES_NOT_SUPPORTED, MYF(0),
9227 clause_that_disallows_subselect);
9228 return NULL;
9229 }
9230 if (unlikely(!(table= current_select->add_table_to_list(thd, table_ident, 0,
9231 TL_OPTION_SEQUENCE,
9232 TL_WRITE_ALLOW_WRITE,
9233 MDL_SHARED_WRITE))))
9234 return NULL;
9235 thd->lex->set_stmt_unsafe(LEX::BINLOG_STMT_UNSAFE_SYSTEM_FUNCTION);
9236 return new (thd->mem_root) Item_func_nextval(thd, table);
9237}
9238
9239
9240Item *LEX::create_item_func_lastval(THD *thd, Table_ident *table_ident)

Callers

nothing calls this directly

Calls 3

my_errorFunction · 0.85
add_table_to_listMethod · 0.80
set_stmt_unsafeMethod · 0.80

Tested by

no test coverage detected