~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

Extracted the checksum command into its own class and implementation files.
Removed the corresponding case label from the switch statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
#include <drizzled/message/table.pb.h>
91
91
#include <drizzled/command.h>
92
92
#include <drizzled/command/assign_to_keycache.h>
 
93
#include <drizzled/command/checksum.h>
93
94
#include <drizzled/command/default_select.h>
94
95
#include <drizzled/command/empty_query.h>
95
96
#include <drizzled/command/show_create.h>
2373
2374
          {
2374
2375
            LEX *lex=Lex;
2375
2376
            lex->sql_command = SQLCOM_CHECKSUM;
 
2377
            lex->command= new(std::nothrow) Checksum(SQLCOM_CHECKSUM,
 
2378
                                                     YYSession);
 
2379
            if (lex->command == NULL)
 
2380
              DRIZZLE_YYABORT;
2376
2381
          }
2377
2382
          table_list opt_checksum_type
2378
2383
          {}