~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

Extracted the show processlist command into a class with its own
implementation files. Removed the corresponding case label from the switch
statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
#include <drizzled/command/show_create.h>
97
97
#include <drizzled/command/show_engine_status.h>
98
98
#include <drizzled/command/show_errors.h>
 
99
#include <drizzled/command/show_processlist.h>
99
100
#include <drizzled/command/show_status.h>
100
101
#include <drizzled/command/show_warnings.h>
101
102
 
4916
4917
              DRIZZLE_YYABORT;
4917
4918
          }
4918
4919
        | opt_full PROCESSLIST_SYM
4919
 
          { Lex->sql_command= SQLCOM_SHOW_PROCESSLIST;}
 
4920
          { 
 
4921
            Lex->sql_command= SQLCOM_SHOW_PROCESSLIST;
 
4922
            Lex->command= 
 
4923
              new(std::nothrow) ShowProcesslist(SQLCOM_SHOW_PROCESSLIST,
 
4924
                                                YYSession);
 
4925
            if (Lex->command == NULL)
 
4926
              DRIZZLE_YYABORT;
 
4927
          }
4920
4928
        | opt_var_type  VARIABLES show_wild
4921
4929
          {
4922
4930
            LEX *lex= Lex;