~snowstalker/drizzle/startup-errors

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2009-11-26 18:48:20 UTC
  • mfrom: (1226.1.3 push)
  • Revision ID: brian@gaz-20091126184820-hltr0upee0ahopsj
Bundle Brian + Monty  (been through staging, just collecting it as want
overall patch as seen by staging).

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
#include <drizzled/statement/insert_select.h>
109
109
#include <drizzled/statement/kill.h>
110
110
#include <drizzled/statement/load.h>
111
 
#include <drizzled/statement/optimize.h>
112
111
#include <drizzled/statement/release_savepoint.h>
113
112
#include <drizzled/statement/rename_table.h>
114
113
#include <drizzled/statement/replace.h>
1009
1008
%type <NONE>
1010
1009
        query verb_clause create select drop insert replace insert2
1011
1010
        insert_values update delete truncate rename
1012
 
        show describe load alter optimize flush
 
1011
        show describe load alter flush
1013
1012
        begin commit rollback savepoint release
1014
1013
        analyze check start checksum
1015
1014
        field_list field_list_item field_spec kill column_def key_def
1079
1078
            else
1080
1079
            {
1081
1080
              session->lex->sql_command= SQLCOM_EMPTY_QUERY;
1082
 
              session->lex->statement= 
 
1081
              session->lex->statement=
1083
1082
                new(std::nothrow) statement::EmptyQuery(YYSession);
1084
1083
              if (session->lex->statement == NULL)
1085
1084
                DRIZZLE_YYABORT;
1108
1107
        | insert
1109
1108
        | kill
1110
1109
        | load
1111
 
        | optimize
1112
1110
        | release
1113
1111
        | rename
1114
1112
        | replace
2596
2594
          {}
2597
2595
        ;
2598
2596
 
2599
 
optimize:
2600
 
          OPTIMIZE table_or_tables
2601
 
          {
2602
 
            LEX *lex=Lex;
2603
 
            lex->sql_command = SQLCOM_OPTIMIZE;
2604
 
            statement::Optimize *statement= new(std::nothrow) statement::Optimize(YYSession);
2605
 
            lex->statement= statement;
2606
 
            if (lex->statement == NULL)
2607
 
              DRIZZLE_YYABORT;
2608
 
          }
2609
 
          table_list
2610
 
          {}
2611
 
        ;
2612
 
 
2613
2597
rename:
2614
2598
          RENAME table_or_tables
2615
2599
          {