~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

Extracted the LOAD 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:
93
93
#include <drizzled/command/checksum.h>
94
94
#include <drizzled/command/default_select.h>
95
95
#include <drizzled/command/empty_query.h>
 
96
#include <drizzled/command/load.h>
96
97
#include <drizzled/command/show_create.h>
97
98
#include <drizzled/command/show_engine_status.h>
98
99
#include <drizzled/command/show_errors.h>
5116
5117
          {
5117
5118
            LEX *lex=Lex;
5118
5119
            lex->sql_command= SQLCOM_LOAD;
 
5120
            lex->command= new(std::nothrow) Load(SQLCOM_LOAD,
 
5121
                                                 YYSession);
 
5122
            if (lex->command == NULL)
 
5123
              DRIZZLE_YYABORT;
5119
5124
            lex->lock_option= $4;
5120
5125
            lex->duplicates= DUP_ERROR;
5121
5126
            lex->ignore= 0;