mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
12e5d5b6be
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
48 lines
1.8 KiB
PHP
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;
|
|
}
|