650
void buildReplicationOption(LEX *lex, bool arg)
652
statement::CreateSchema *statement= (statement::CreateSchema *)lex->statement;
653
message::ReplicationOptions *options= statement->schema_message.mutable_replication_options();
654
options->set_dont_replicate(arg);
657
void buildAddAlterDropIndex(LEX *lex, const char *name, bool is_foreign_key)
659
statement::AlterTable *statement= (statement::AlterTable *)lex->statement;
661
statement->alter_info.flags.set(ALTER_DROP_INDEX);
664
statement->alter_info.flags.set(ALTER_FOREIGN_KEY);
665
statement->alter_info.drop_list.push_back(new AlterDrop(AlterDrop::FOREIGN_KEY, name));
669
statement->alter_info.drop_list.push_back(new AlterDrop(AlterDrop::KEY, name));
650
673
} // namespace parser
651
674
} // namespace drizzled