~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Stewart Smith
  • Date: 2011-02-28 01:22:25 UTC
  • mto: (2241.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2242.
  • Revision ID: stewart@flamingspork.com-20110228012225-jd4qfzx9pjvajvp8
add very basic ALTER TABLE protobuf message and add the DEFAULT/OFFLINE/ONLINE build method member to it, assert that we're doing the right thing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1726
1726
build_method:
1727
1727
        /* empty */
1728
1728
          {
 
1729
            Lex->alter_table()->set_build_method(message::AlterTable::BUILD_DEFAULT);
1729
1730
            $$= HA_BUILD_DEFAULT;
1730
1731
          }
1731
1732
        | ONLINE_SYM
1732
1733
          {
 
1734
            Lex->alter_table()->set_build_method(message::AlterTable::BUILD_ONLINE);
1733
1735
            $$= HA_BUILD_ONLINE;
1734
1736
          }
1735
1737
        | OFFLINE_SYM
1736
1738
          {
 
1739
            Lex->alter_table()->set_build_method(message::AlterTable::BUILD_OFFLINE);
1737
1740
            $$= HA_BUILD_OFFLINE;
1738
1741
          }
1739
1742
        ;