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

Method create_item_func_lastval

sql/sql_lex.cc:9240–9256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9238
9239
9240Item *LEX::create_item_func_lastval(THD *thd, Table_ident *table_ident)
9241{
9242 TABLE_LIST *table;
9243 if (clause_that_disallows_subselect)
9244 {
9245 my_error(ER_SUBQUERIES_NOT_SUPPORTED, MYF(0),
9246 clause_that_disallows_subselect);
9247 return NULL;
9248 }
9249 if (unlikely(!(table= current_select->add_table_to_list(thd, table_ident, 0,
9250 TL_OPTION_SEQUENCE,
9251 TL_READ,
9252 MDL_SHARED_READ))))
9253 return NULL;
9254 thd->lex->set_stmt_unsafe(LEX::BINLOG_STMT_UNSAFE_SYSTEM_FUNCTION);
9255 return new (thd->mem_root) Item_func_lastval(thd, table);
9256}
9257
9258
9259Item *LEX::create_item_func_nextval(THD *thd,

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