~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Padraig O'Sullivan
  • Date: 2009-08-17 20:20:04 UTC
  • mto: (1115.3.6 captain)
  • mto: This revision was merged to the branch mainline in revision 1119.
  • Revision ID: osullivan.padraig@gmail.com-20090817202004-s1r0ej62i2v83koa
Extracted the KILL command into its own class and implementation files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
#include <drizzled/statement/drop_schema.h>
100
100
#include <drizzled/statement/drop_table.h>
101
101
#include <drizzled/statement/empty_query.h>
 
102
#include <drizzled/statement/flush.h>
 
103
#include <drizzled/statement/kill.h>
102
104
#include <drizzled/statement/load.h>
103
 
#include <drizzled/statement/flush.h>
104
105
#include <drizzled/statement/optimize.h>
105
106
#include <drizzled/statement/rollback.h>
106
107
#include <drizzled/statement/select.h>
5026
5027
            lex->value_list.empty();
5027
5028
            lex->value_list.push_front($3);
5028
5029
            lex->sql_command= SQLCOM_KILL;
 
5030
            lex->statement= new(std::nothrow) statement::Kill(YYSession);
 
5031
            if (lex->statement == NULL)
 
5032
              DRIZZLE_YYABORT;
5029
5033
          }
5030
5034
        ;
5031
5035