| 9011 | |
| 9012 | |
| 9013 | bool LEX::check_expr_allows_fields_or_error(THD *thd, const char *name) const |
| 9014 | { |
| 9015 | if (select_stack_top > 0) |
| 9016 | return false; // OK, fields are allowed |
| 9017 | my_error(ER_BAD_FIELD_ERROR, MYF(0), name, thd_where(thd)); |
| 9018 | return true; // Error, fields are not allowed |
| 9019 | } |
| 9020 | |
| 9021 | Item *LEX::create_item_ident_nospvar(THD *thd, |
| 9022 | const Lex_ident_sys_st *a, |