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

Method check_expr_allows_fields_or_error

sql/sql_lex.cc:9013–9019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9011
9012
9013bool 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
9021Item *LEX::create_item_ident_nospvar(THD *thd,
9022 const Lex_ident_sys_st *a,

Callers

nothing calls this directly

Calls 2

my_errorFunction · 0.85
thd_whereFunction · 0.85

Tested by

no test coverage detected