mariadb/mysql-test/suite/parts/inc
Mattias Jonsson 4b20ccafaa Bug#49907: ALTER TABLE ... TRUNCATE PARTITION does not wait for
locks on the table

Fixing the partitioning specifics after TRUNCATE TABLE in
bug-42643 was fixed.

Reorganize of code to decrease the size of the giant switch
in mysql_execute_command, and to prepare for future parser
reengineering. Moved code into Sql_statement objects.

Updated patch according to davi's review comments.

libmysqld/CMakeLists.txt:
  Added new files.
libmysqld/Makefile.am:
  Added new files.
mysql-test/r/not_partition.result:
  now returning error on partitioning commands
  if partitioning is not enabled.
mysql-test/r/partition_disabled.result:
  There is no partition handlerton, so it cannot
  find the specified engine in the .frm file.
mysql-test/r/partition_truncate.result:
  Updated test results.
mysql-test/suite/parts/inc/partition_mgm.inc:
  Added check that TRUNCATE PARTITION does not delete on failure.
mysql-test/suite/parts/r/partition_debug_sync_innodb.result:
  updated results.
mysql-test/suite/parts/r/partition_mgm_lc0_archive.result:
  updated results.
mysql-test/suite/parts/r/partition_mgm_lc1_archive.result:
  updated results.
mysql-test/suite/parts/r/partition_mgm_lc2_archive.result:
  updated results.
mysql-test/suite/parts/t/partition_debug_sync_innodb.test:
  Test case for this bug.
mysql-test/t/not_partition.test:
  Added check for TRUNCATE PARTITION without partitioning.
mysql-test/t/partition_truncate.test:
  Added test of TRUNCATE PARTITION on non partitioned table.
sql/CMakeLists.txt:
  Added new files.
sql/Makefile.am:
  Added new files.
sql/datadict.cc:
  Moved out the storage engine check into an own
  function, including assert for lock.
sql/datadict.h:
  added dd_frm_storage_engine.
sql/sql_alter_table.cc:
  moved the code for SQLCOM_ALTER_TABLE in mysql_execute_command
  into its own file, and using the Sql_statement object to
  prepare for future parser reengineering.
sql/sql_alter_table.h:
  Created Sql_statement object for ALTER TABLE.
sql/sql_lex.cc:
  resetting m_stmt.
sql/sql_lex.h:
  Temporary hack for forward declaration of enum_alter_table_change_level.
sql/sql_parse.cc:
  Moved out ALTER/ANALYZE/CHECK/OPTIMIZE/REPAIR TABLE
  from the giant switch into their own Sql_statement
  objects.
sql/sql_parse.h:
  Exporting check_merge_table_access.
sql/sql_partition_admin.cc:
  created Sql_statement for
  ALTER TABLE t ANALYZE/CHECK/OPTIMIZE/REPAIR/TRUNCATE
  PARTITION. To be able to reuse the TABLE equivalents.
sql/sql_partition_admin.h:
  Added Sql_statement of partition admin statements.
sql/sql_table.cc:
  Moved table maintenance code into sql_table_maintenance.cc
sql/sql_table.h:
  Moved table maintenance code into sql_table_maintenance.h
  exporting functions used by sql_table_maintenance.
sql/sql_table_maintenance.cc:
  Moved table maintenance code from sql_table.cc
sql/sql_table_maintenance.h:
  Sql_statement objects for ANALYZE/CHECK/OPTIMIZE/REPAIR TABLE.
  Also declaring the keycache functions.
sql/sql_truncate.cc:
  Moved code from SQLCOM_TRUNCATE in mysql_execute_command into
  Truncate_statement::execute.
  Added check for partitioned table on TRUNCATE PARTITION.
  Moved locking fix for partitioned table into
  Alter_table_truncate_partition::execute.
sql/sql_truncate.h:
  Truncate_statement declaration (sub class of Sql_statement).
sql/sql_yacc.yy:
  Using the new Sql_statment objects.
2010-08-16 14:53:30 +02:00
..
methods1.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
part_blocked_sql_funcs_main.inc Post-push fixes for the bug #42849: 2009-12-14 20:27:43 +03:00
part_supported_sql_funcs_delete.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
part_supported_sql_funcs_main.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition.pre - Add autodetection of which my.cnfs to use for each testcase if suite does 2008-01-10 16:50:37 +01:00
partition_10.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_11.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_12.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_20.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_alter1_1.inc Merge magare.gmz:/home/kgeorge/mysql/work/B36011-take2-5.0-bugteam 2008-05-16 19:03:50 +03:00
partition_alter1_1_2.inc Merge magare.gmz:/home/kgeorge/mysql/work/B36011-take2-5.0-bugteam 2008-05-16 19:03:50 +03:00
partition_alter1_2.inc Merge magare.gmz:/home/kgeorge/mysql/work/B36011-take2-5.0-bugteam 2008-05-16 19:03:50 +03:00
partition_alter2_1.inc merge of bug#47135 into mysql-next-mr-bugfixing 2009-11-25 09:19:34 +01:00
partition_alter2_2.inc merge of bug#47135 into mysql-next-mr-bugfixing 2009-11-25 09:19:34 +01:00
partition_alter3.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_alter4.inc Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that 2008-08-11 20:02:03 +02:00
partition_alter_1.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_alter_11.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
partition_alter_13.inc merge of bug#47135 into mysql-next-mr-bugfixing 2009-11-25 09:19:34 +01:00
partition_alter_41.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_auto_increment.inc Bug#50392: insert_id is not reset for partitioned tables 2010-03-04 18:16:10 +01:00
partition_basic.inc additional test fix for Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY 2008-02-29 12:52:50 +04:00
partition_basic_symlink.inc Bug#35306: partition_basic_symlink test failures 2008-03-17 16:18:02 +01:00
partition_bigint.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
partition_binary.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_bit.inc Bug#34225: suite/parts test failure 2008-02-07 16:26:22 +01:00
partition_blob.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_blocked_sql_funcs.inc Fixes for the following bugs: 2007-08-27 14:08:32 -06:00
partition_char.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_check.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_check_drop.inc merged 5.1 main to 5.1-rpl 2008-08-04 07:04:47 +02:00
partition_check_read.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_check_read1.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_check_read2.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_cleanup.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_crash.inc Bug#53676: Unexpected errors and possible table 2010-08-13 09:50:25 +02:00
partition_crash_add.inc Bug#53676: Unexpected errors and possible table 2010-08-13 09:50:25 +02:00
partition_crash_change.inc Bug#53676: Unexpected errors and possible table 2010-08-13 09:50:25 +02:00
partition_crash_drop.inc Bug#53676: Unexpected errors and possible table 2010-08-13 09:50:25 +02:00
partition_date.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_datetime.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_decimal.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_directory.inc Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output 2008-11-04 08:43:21 +01:00
partition_double.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_engine.inc Post push fix 2008-02-25 21:18:50 +01:00
partition_enum.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_fail.inc Bug#53676: Unexpected errors and possible table 2010-08-13 09:50:25 +02:00
partition_fail_add.inc Bug#53676: Unexpected errors and possible table 2010-08-13 09:50:25 +02:00
partition_fail_change.inc Bug#53676: Unexpected errors and possible table 2010-08-13 09:50:25 +02:00
partition_fail_drop.inc Bug#53676: Unexpected errors and possible table 2010-08-13 09:50:25 +02:00
partition_float.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_int.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
partition_key_4col.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_key_8col.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_key_16col.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_key_32col.inc WL#3352, Introducing Column list partitioning, makes it possible to partition on most data types, makes it possible to prune on multi-field partitioning 2009-09-15 17:07:52 +02:00
partition_layout.inc merged 5.1 main to 5.1-rpl 2008-08-04 07:04:47 +02:00
partition_layout_check1.inc Fixed the parts testsuite to work with mtr2 2009-02-01 14:00:48 +02:00
partition_layout_check2.inc Fixed the parts testsuite to work with mtr2 2009-02-01 14:00:48 +02:00
partition_mediumint.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
partition_methods1.inc Bug#35306: partition_basic_symlink test failures 2008-03-17 16:18:02 +01:00
partition_methods2.inc Bug#35306: partition_basic_symlink test failures 2008-03-17 16:18:02 +01:00
partition_mgm.inc Bug#49907: ALTER TABLE ... TRUNCATE PARTITION does not wait for 2010-08-16 14:53:30 +02:00
partition_mgm_crash.inc Bug#53676: Unexpected errors and possible table 2010-08-13 09:50:25 +02:00
partition_set.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_smallint.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
partition_supported_sql_funcs.inc merged 5.1 main to 5.1-rpl 2008-08-04 07:04:47 +02:00
partition_syntax.inc Fixed test cases with regards to error codes 2009-10-21 18:27:34 +02:00
partition_syntax_1.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_syntax_2.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_text.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_time.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_timestamp.inc Post-push fixes for the bug #42849: 2009-12-14 20:27:43 +03:00
partition_tinyint.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
partition_trigg1.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_trigg2.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_trigg3.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_value.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_varbinary.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_varchar.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_year.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00