mariadb/mysql-test/suite/parts/inc/partition_syntax_2.inc
mleich@five.local.lan 12e5d5b6be Fixes for the bugs
Bug#31610 Remove outdated and redundant tests:
                 partition_02myisam partition_03ndb
       Bug#32405 testsuite parts: partition_char_myisam wrong content
and cleanup of testsuite
   - remove/correct wrong comments
   - remove workarounds for fixed bugs
   - replace error numbers with error names
   - exclude subtests from execution which fail now because of
     new limitations for partitioning functions
   - remove code for the no more intended dual use
     fast test in regression tests/slow test in testsuite
   - analyze and fix problems with partition_char_innodb
   - fix problems caused by last change of error numbers
   - Introduce error name to error number mapping which makes
     maintenance after next error renumbering easier
2007-11-20 16:04:07 +01:00

48 lines
1.8 KiB
PHP

################################################################################
# inc/partition_syntax_2.inc #
# #
# Purpose: #
# Auxiliary script, only useful when sourced by inc/partition_syntax.inc. #
# #
#------------------------------------------------------------------------------#
# Original Author: mleich #
# Original Date: 2006-05-11 #
# Change Author: #
# Change Date: #
# Change: #
################################################################################
if (`SELECT @@session.storage_engine NOT IN('ndbcluster')`)
{
--error ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF
eval CREATE TABLE t1 (
$column_list,
$unique_index
)
$partition_scheme;
--error ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF
eval CREATE TABLE t1 (
$column_list,
PRIMARY KEY(f_int1,f_int2), $unique_index
)
$partition_scheme;
}
if (`SELECT @@session.storage_engine IN('ndbcluster')`)
{
eval CREATE TABLE t1 (
$column_list,
$unique_index
)
$partition_scheme;
eval $insert_all;
--source suite/parts/inc/partition_check.inc
DROP TABLE t1;
eval CREATE TABLE t1 (
$column_list,
PRIMARY KEY(f_int1,f_int2), $unique_index
)
$partition_scheme;
eval $insert_all;
--source suite/parts/inc/partition_check.inc
DROP TABLE t1;
}