mariadb/mysql-test/suite/parts/inc/partition_syntax_2.inc

49 lines
1.8 KiB
PHP
Raw Normal View History

2007-02-06 13:35:54 +01:00
################################################################################
# inc/partition_syntax_2.inc #
2007-02-06 13:35:54 +01:00
# #
# Purpose: #
# Auxiliary script, only useful when sourced by inc/partition_syntax.inc. #
2007-02-06 13:35:54 +01:00
# #
#------------------------------------------------------------------------------#
# Original Author: mleich #
2007-02-06 13:35:54 +01:00
# 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;
2007-04-30 16:24:13 +02:00
--source suite/parts/inc/partition_check.inc
2007-02-06 13:35:54 +01:00
DROP TABLE t1;
eval CREATE TABLE t1 (
$column_list,
PRIMARY KEY(f_int1,f_int2), $unique_index
)
$partition_scheme;
eval $insert_all;
2007-04-30 16:24:13 +02:00
--source suite/parts/inc/partition_check.inc
2007-02-06 13:35:54 +01:00
DROP TABLE t1;
}