| 9219 | |
| 9220 | |
| 9221 | Item *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 | |
| 9240 | Item *LEX::create_item_func_lastval(THD *thd, Table_ident *table_ident) |
nothing calls this directly
no test coverage detected