~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/set_option.cc

  • Committer: Brian Aker
  • Date: 2011-01-25 07:24:41 UTC
  • mfrom: (2104.3.14 alter-table)
  • Revision ID: brian@tangent.org-20110125072441-gf9f14lkxjhvvku9
MergeĀ inĀ alter/parser

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
namespace drizzled
27
27
{
28
28
 
 
29
namespace statement
 
30
{
 
31
SetOption::SetOption(Session *in_session) :
 
32
  Statement(in_session),
 
33
  one_shot_set(false)
 
34
  {
 
35
    getSession()->getLex()->sql_command= SQLCOM_SET_OPTION;
 
36
    init_select(getSession()->getLex());
 
37
    getSession()->getLex()->option_type= OPT_SESSION;
 
38
    getSession()->getLex()->var_list.empty();
 
39
  }
 
40
} // namespace statement
 
41
 
29
42
bool statement::SetOption::execute()
30
43
{
31
44
  TableList *all_tables= getSession()->lex->query_tables;