23#include <drizzled/session.h>
24#include <drizzled/statement/set_option.h>
25#include <drizzled/sql_lex.h>
30SetOption::SetOption(Session *in_session) :
34 set_command(SQLCOM_SET_OPTION);
36 lex().option_type= OPT_SESSION;
37 lex().var_list.clear();
43 TableList *all_tables= lex().query_tables;
45 if (session().openTablesLock(all_tables))
57 if (! session().is_error())
59 my_error(ER_WRONG_ARGUMENTS, MYF(0),
"SET");
Represents a statement to be executed.
TODO: Rename this file - func.h is stupid.
int sql_set_variables(Session *session, const SetVarVector &var_list)