~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Olaf van der Spek
  • Date: 2011-02-18 07:44:24 UTC
  • mto: (2212.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2213.
  • Revision ID: olafvdspek@gmail.com-20110218074424-afavvyi2nqq6ekhe
x

Show diffs side-by-side

added added

removed removed

Lines of Context:
1802
1802
          {
1803
1803
            statement::AlterTable *statement= (statement::AlterTable *)Lex->statement;
1804
1804
 
1805
 
            statement->alter_info.drop_list.push_back(new AlterDrop(AlterDrop::COLUMN, $3.str));
 
1805
            statement->alter_info.drop_list.push_back(AlterDrop(AlterDrop::COLUMN, $3.str));
1806
1806
            statement->alter_info.flags.set(ALTER_DROP_COLUMN);
1807
1807
          }
1808
1808
        | DROP FOREIGN KEY_SYM opt_ident
4001
4001
            Lex->statement= statement;
4002
4002
            statement->alter_info.flags.set(ALTER_DROP_INDEX);
4003
4003
            statement->alter_info.build_method= $2;
4004
 
            statement->alter_info.drop_list.push_back(new AlterDrop(AlterDrop::KEY, $4.str));
 
4004
            statement->alter_info.drop_list.push_back(AlterDrop(AlterDrop::KEY, $4.str));
4005
4005
            if (not Lex->current_select->add_table_to_list(Lex->session, $6, NULL,
4006
4006
                                                          TL_OPTION_UPDATING))
4007
4007
              DRIZZLE_YYABORT;