partition_alter2_ndb.test 3.55 KB
Newer Older
1 2 3 4 5 6 7 8
################################################################################
# t/partition_alter2_ndb.test                                                  #
#                                                                              #
# Purpose:                                                                     #
#  Tests around Alter column used in partitioning function                     #
#        NDB branch                                                            #
#                                                                              #
#------------------------------------------------------------------------------#
unknown's avatar
unknown committed
9
# Original Author: mleich                                                      #
10 11 12 13 14 15 16 17 18 19 20
# Original Date: 2006-03-05                                                    #
# Change Author:                                                               #
# Change Date:                                                                 #
# Change:                                                                      #
################################################################################

#
# NOTE: PLEASE DO NOT ADD NOT NDB SPECIFIC TESTCASES HERE !
#       TESTCASES WHICH MUST BE APPLIED TO ALL STORAGE ENGINES MUST BE ADDED IN
#       THE SOURCED FILES ONLY.
#
unknown's avatar
unknown committed
21
# Please read the README at the end of inc/partition.pre before changing
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
# any of the variables.
#

#------------------------------------------------------------------------------#
# General not engine specific settings and requirements

##### Options, for debugging support #####
let $debug= 0;
let $with_partitioning= 1;

##### Option, for displaying files #####
let $ls= 1;

##### Number of rows for the INSERT/UPDATE/DELETE/SELECT experiments #####
#     on partioned tables
SET @max_row = 20;

##### Execute more tests                                             #####
let $more_trigger_tests= 0;
let $more_pk_ui_tests= 0;

# The server must support partitioning. But NDB is partitioned from the start.
# Thats why the next line is set to comment.
# --source include/have_partition.inc

#------------------------------------------------------------------------------#
# Engine specific settings and requirements

##### Storage engine to be tested
--source include/have_ndb.inc
unknown's avatar
unknown committed
52
let $engine= 'ndbcluster';
53
connection default;
54

55 56 57 58
# range, list and hash partitioning in ndb requires new_mode
--disable_query_log
set new=on;
--enable_query_log
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
##### Execute the test of "table" files
# NDB has no files per PK, UI, ...
let $do_file_tests= 0;

##### Execute PRIMARY KEY tests                                      #####
# AFAIK NDB is always partitioned using the explicit defined PRIMARY KEY
#       or uses an internal one.
let $do_pk_tests= 1;

##### Assign a big number smaller than the maximum value for partitions  #####
#     and smaller than the maximum value of SIGNED INTEGER
# The NDB handler only supports 32 bit integers in VALUES
#     2147483647 seems to be too big.
let $MAX_VALUE= (2147483646);

# Generate the prerequisites ($variables, @variables, tables) needed
unknown's avatar
unknown committed
75
--source suite/parts/inc/partition.pre
76 77 78 79 80 81

##### Workarounds for known open engine specific bugs
#     none

#------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines
unknown's avatar
unknown committed
82
--source suite/parts/inc/partition_alter2.inc
83 84 85 86 87 88

#------------------------------------------------------------------------------#
# Execute storage engine specific tests

#------------------------------------------------------------------------------#
# Cleanup
unknown's avatar
unknown committed
89
--source suite/parts/inc/partition_cleanup.inc