1 ################################################################################
2 # inc/partition_syntax_2.inc #
5 # Auxiliary script, only useful when sourced by inc/partition_syntax.inc. #
7 #------------------------------------------------------------------------------#
8 # Original Author: mleich #
9 # Original Date: 2006-05-11 #
13 ################################################################################
15 if (`SELECT @@session.default_storage_engine NOT IN(
'ndbcluster')`)
17 --error ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF
18 eval CREATE
TABLE t1 (
23 --error ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF
24 eval CREATE
TABLE t1 (
26 PRIMARY
KEY(f_int1,f_int2), $unique_index
30 if (`SELECT @@session.default_storage_engine IN('ndbcluster')`)
32 eval CREATE
TABLE t1 (
38 --source suite/parts/inc/partition_check.inc
40 eval CREATE
TABLE t1 (
42 PRIMARY
KEY(f_int1,f_int2), $unique_index
46 --source suite/parts/inc/partition_check.inc