~maria-captains/maria/5.5-explain-analyze

« back to all changes in this revision

Viewing changes to sql/sql_yacc.yy

  • Committer: Sergey Petrunya
  • Date: 2012-09-03 15:11:24 UTC
  • Revision ID: psergey@askmonty.org-20120903151124-s1y9vrz3k4ezy642
MDEV-406: EXPLAIN ANALYZE 
- First code, it is possible to get the data for joins/unions
- Numbers for join buffering are likely to be incorrect
- Same for subqueries (what should 'loops' show?)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11702
11702
          }
11703
11703
          opt_describe_column {}
11704
11704
        | describe_command opt_extended_describe
11705
 
          { Lex->describe|= DESCRIBE_NORMAL; }
 
11705
          { 
 
11706
            if (!Lex->describe_analyze)
 
11707
              Lex->describe|= DESCRIBE_NORMAL; 
 
11708
          }
11706
11709
          select
11707
11710
          {
11708
11711
            LEX *lex=Lex;
11709
 
            lex->select_lex.options|= SELECT_DESCRIBE;
 
11712
            if (!lex->describe_analyze)
 
11713
              lex->select_lex.options|= SELECT_DESCRIBE;
11710
11714
          }
11711
11715
        ;
11712
11716
 
11719
11723
          /* empty */ {}
11720
11724
        | EXTENDED_SYM   { Lex->describe|= DESCRIBE_EXTENDED; }
11721
11725
        | PARTITIONS_SYM { Lex->describe|= DESCRIBE_PARTITIONS; }
 
11726
        | ANALYZE_SYM { Lex->describe_analyze= TRUE; }
11722
11727
        ;
11723
11728
 
11724
11729
opt_describe_column: