~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2009-11-24 02:06:37 UTC
  • mfrom: (1223.1.7 push)
  • Revision ID: brian@gaz-20091124020637-9gb65vj98x1arydm
MergeĀ forĀ staging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1024
1024
        opt_attribute opt_attribute_list attribute
1025
1025
        flush_options flush_option
1026
1026
        equal optional_braces
1027
 
        opt_mi_check_type opt_to mi_check_types normal_join
 
1027
        normal_join
1028
1028
        table_to_table_list table_to_table opt_table_list opt_as
1029
1029
        single_multi
1030
1030
        union_clause union_list
2564
2564
            if (lex->statement == NULL)
2565
2565
              DRIZZLE_YYABORT;
2566
2566
          }
2567
 
          table_list opt_checksum_type
 
2567
          table_list
2568
2568
          {}
2569
2569
        ;
2570
2570
 
2571
 
opt_checksum_type:
2572
 
          /* nothing */ { ((statement::Checksum *)Lex->statement)->check_opt.flags= 0; }
2573
 
        | QUICK         { ((statement::Checksum *)Lex->statement)->check_opt.flags= T_QUICK; }
2574
 
        | EXTENDED_SYM  { ((statement::Checksum *)Lex->statement)->check_opt.flags= T_EXTEND; }
2575
 
        ;
2576
 
 
2577
2571
 
2578
2572
analyze:
2579
2573
          ANALYZE_SYM table_or_tables
2598
2592
            if (lex->statement == NULL)
2599
2593
              DRIZZLE_YYABORT;
2600
2594
          }
2601
 
          table_list opt_mi_check_type
 
2595
          table_list
2602
2596
          {}
2603
2597
        ;
2604
2598
 
2605
 
opt_mi_check_type:
2606
 
          /* empty */ { ((statement::Check *)Lex->statement)->check_opt.flags = T_MEDIUM; }
2607
 
        | mi_check_types {}
2608
 
        ;
2609
 
 
2610
 
mi_check_types:
2611
 
          mi_check_type {}
2612
 
        | mi_check_type mi_check_types {}
2613
 
        ;
2614
 
 
2615
 
mi_check_type:
2616
 
          QUICK               { ((statement::Check *)Lex->statement)->check_opt.flags|= T_QUICK; }
2617
 
        | FAST_SYM            { ((statement::Check *)Lex->statement)->check_opt.flags|= T_FAST; }
2618
 
        | MEDIUM_SYM          { ((statement::Check *)Lex->statement)->check_opt.flags|= T_MEDIUM; }
2619
 
        | EXTENDED_SYM        { ((statement::Check *)Lex->statement)->check_opt.flags|= T_EXTEND; }
2620
 
        | CHANGED             { ((statement::Check *)Lex->statement)->check_opt.flags|= T_CHECK_ONLY_CHANGED; }
2621
 
        ;
2622
 
 
2623
2599
optimize:
2624
2600
          OPTIMIZE table_or_tables
2625
2601
          {