~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2008-12-23 07:19:26 UTC
  • Revision ID: brian@tangent.org-20081223071926-69z2ugpftfz1lfnm
Remove dead variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3767
3767
 
3768
3768
variable:
3769
3769
          '@'
3770
 
          {
3771
 
            if (! Lex->parsing_options.allows_variable)
3772
 
            {
3773
 
              my_error(ER_VIEW_SELECT_VARIABLE, MYF(0));
3774
 
              DRIZZLE_YYABORT;
3775
 
            }
3776
 
          }
 
3770
          { }
3777
3771
          variable_aux
3778
3772
          {
3779
3773
            $$= $3;
4298
4292
          {
4299
4293
            LEX *lex= Lex;
4300
4294
 
4301
 
            if (! lex->parsing_options.allows_derived)
4302
 
            {
4303
 
              my_error(ER_VIEW_SELECT_DERIVED, MYF(0));
4304
 
              DRIZZLE_YYABORT;
4305
 
            }
4306
 
 
4307
4295
            SELECT_LEX *sel= lex->current_select;
4308
4296
            TableList *embedding;
4309
4297
            if (!sel->embedding || sel->end_nested_join(lex->session))
4772
4760
 
4773
4761
into:
4774
4762
          INTO
4775
 
          {
4776
 
            if (! Lex->parsing_options.allows_select_into)
4777
 
            {
4778
 
              my_error(ER_VIEW_SELECT_CLAUSE, MYF(0), "INTO");
4779
 
              DRIZZLE_YYABORT;
4780
 
            }
4781
 
          }
 
4763
          { }
4782
4764
          into_destination
4783
4765
        ;
4784
4766