~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Stewart Smith
  • Date: 2010-03-02 07:09:16 UTC
  • mto: (1309.2.13 build)
  • mto: This revision was merged to the branch mainline in revision 1318.
  • Revision ID: stewart@flamingspork.com-20100302070916-xlquisxn0xpal31n
move FLUSH statement to use boolean values in statement::Flush instead of overloading Lex->type with REFRESH_STATUS and others.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5262
5262
 
5263
5263
flush_option:
5264
5264
          table_or_tables
5265
 
          { Lex->type|= REFRESH_TABLES; }
 
5265
          {
 
5266
            statement::Flush *statement= (statement::Flush*)Lex->statement;
 
5267
            statement->setFlushTables(true);
 
5268
          }
5266
5269
          opt_table_list {}
5267
5270
        | TABLES WITH READ_SYM LOCK_SYM
5268
 
          { Lex->type|= REFRESH_TABLES | REFRESH_READ_LOCK; }
 
5271
          {
 
5272
            statement::Flush *statement= (statement::Flush*)Lex->statement;
 
5273
            statement->setFlushTablesWithReadLock(true);
 
5274
          }
5269
5275
        | LOGS_SYM
5270
 
          { Lex->type|= REFRESH_LOG; }
 
5276
          {
 
5277
            statement::Flush *statement= (statement::Flush*)Lex->statement;
 
5278
            statement->setFlushLog(true);
 
5279
          }
5271
5280
        | STATUS_SYM
5272
 
          { Lex->type|= REFRESH_STATUS; }
 
5281
          {
 
5282
            statement::Flush *statement= (statement::Flush*)Lex->statement;
 
5283
            statement->setFlushStatus(true);
 
5284
          }
5273
5285
        ;
5274
5286
 
5275
5287
opt_table_list: