| 9238 | |
| 9239 | |
| 9240 | Item *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 | |
| 9259 | Item *LEX::create_item_func_nextval(THD *thd, |
nothing calls this directly
no test coverage detected