~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

Extracted the assign to keycache command into its own class and
implementation files. Removed the corresponding case label from the giant
switch statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
#include <drizzled/command/show_warnings.h>
96
96
#include <drizzled/command/show_errors.h>
97
97
#include <drizzled/command/show_engine_status.h>
 
98
#include <drizzled/command/assign_to_keycache.h>
98
99
 
99
100
using namespace drizzled::command;
100
101
 
2467
2468
          {
2468
2469
            LEX *lex=Lex;
2469
2470
            lex->sql_command= SQLCOM_ASSIGN_TO_KEYCACHE;
 
2471
            lex->command=
 
2472
              new(std::nothrow) AssignToKeycache(SQLCOM_ASSIGN_TO_KEYCACHE,
 
2473
                                                 YYSession);
 
2474
            if (lex->command == NULL)
 
2475
              DRIZZLE_YYABORT;
2470
2476
            lex->ident= $5;
2471
2477
          }
2472
2478
        ;