summaryrefslogtreecommitdiff
path: root/sql/ha_partition.h
diff options
context:
space:
mode:
authorunknown <pappa@c-4a09e253.1238-1-64736c10.cust.bredbandsbolaget.se>2005-08-19 10:26:05 -0400
committerunknown <pappa@c-4a09e253.1238-1-64736c10.cust.bredbandsbolaget.se>2005-08-19 10:26:05 -0400
commit7b79f7288552b3e3087279a5949e58722cb24df1 (patch)
tree9ce7f70969e271169278d7eeb88691a5903a77f2 /sql/ha_partition.h
parentc77f8d6e460021a6d086c7ec36a95d159c047096 (diff)
downloadmariadb-git-7b79f7288552b3e3087279a5949e58722cb24df1.tar.gz
WL #2602, #2603, #2604
Added new syntax for partition management mysql-test/t/partition_error.test: New line sql/ha_partition.cc: Added support for DROP PARTITION on-line sql/ha_partition.h: Added support for DROP PARTITION on-line sql/handler.h: Introduced state of partition Introduced extra list of temporary partitions Removed no_full_parts A couple of methods to check for duplicate names of partitions Adaptions of default checks to be useful from ALTER TABLE partition management New method on handler to drop partitions New method to check for foreign keys on table sql/lex.h: COALESCE and REORGANISE used by ALTER TABLE x COALESCE/REORGANISE PARTITION sql/mysql_priv.h: Parser needs method to check if partition management command is ongoing sql/share/errmsg.txt: A number of new error messages for partition management sql/sql_lex.h: Adapted the ALTER_INFO data structure for partition management sql/sql_partition.cc: Couple of new routines + adaption of existing for new partition management functionality sql/sql_table.cc: bin log writing into separate subroutine to minimise code duplication. Lots of new code to handle partition management sql/sql_yacc.yy: New syntax for partition management Fixed a few errors in the parser part for partitioning
Diffstat (limited to 'sql/ha_partition.h')
-rw-r--r--sql/ha_partition.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/ha_partition.h b/sql/ha_partition.h
index e78cff4cdbb..858bf09ecaa 100644
--- a/sql/ha_partition.h
+++ b/sql/ha_partition.h
@@ -166,6 +166,7 @@ public:
virtual int create_handler_files(const char *name);
virtual void update_create_info(HA_CREATE_INFO * create_info);
virtual char *update_table_comment(const char *comment);
+ virtual int drop_partitions(const char *path);
private:
/*
delete_table, rename_table and create uses very similar logic which
@@ -633,6 +634,11 @@ public:
index scan module.
(NDB)
*/
+ virtual ulong alter_table_flags(void) const
+ {
+ //return HA_ONLINE_ADD_EMPTY_PARTITION + HA_ONLINE_DROP_PARTITION;
+ return HA_ONLINE_DROP_PARTITION;
+ }
virtual ulong table_flags() const
{ return m_table_flags; }
/*