~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2008-07-18 22:05:16 UTC
  • Revision ID: brian@tangent.org-20080718220516-dzyjle0iqqjssphx
Dead debug code removal (and a compatible "never used") bit in the
optimizer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1057
1057
        keycache_list assign_to_keycache
1058
1058
        select_item_list select_item values_list no_braces
1059
1059
        opt_limit_clause delete_limit_clause fields opt_values values
1060
 
        opt_precision opt_ignore opt_column opt_restrict
 
1060
        opt_precision opt_ignore opt_column
1061
1061
        set lock unlock string_list field_options field_option
1062
1062
        field_opt_list opt_binary table_lock_list table_lock
1063
1063
        ref_list opt_match_clause opt_on_update_delete use
2577
2577
              MYSQL_YYABORT;
2578
2578
          }
2579
2579
          opt_place
2580
 
        | DROP opt_column field_ident opt_restrict
 
2580
        | DROP opt_column field_ident
2581
2581
          {
2582
2582
            LEX *lex=Lex;
2583
2583
            lex->alter_info.drop_list.push_back(new Alter_drop(Alter_drop::COLUMN,
2692
2692
        | IGNORE_SYM { Lex->ignore= 1;}
2693
2693
        ;
2694
2694
 
2695
 
opt_restrict:
2696
 
          /* empty */ { Lex->drop_mode= DROP_DEFAULT; }
2697
 
        | RESTRICT    { Lex->drop_mode= DROP_RESTRICT; }
2698
 
        | CASCADE     { Lex->drop_mode= DROP_CASCADE; }
2699
 
        ;
2700
 
 
2701
2695
opt_place:
2702
2696
          /* empty */ {}
2703
2697
        | AFTER_SYM ident
5026
5020
*/
5027
5021
 
5028
5022
drop:
5029
 
          DROP opt_temporary table_or_tables if_exists table_list opt_restrict
 
5023
          DROP opt_temporary table_or_tables if_exists table_list
5030
5024
          {
5031
5025
            LEX *lex=Lex;
5032
5026
            lex->sql_command = SQLCOM_DROP_TABLE;