~vadim-tk/percona-server/percona-galera-5.1.57-0.8.1

« back to all changes in this revision

Viewing changes to mysql-test/suite/parts/t/partition_syntax_ndb.test

  • Committer: root
  • Date: 2011-07-28 00:14:23 UTC
  • Revision ID: root@r815.office.percona.com-20110728001423-6pw0v4b7r0dkbsr4
Ported to Galera 0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
################################################################################
 
2
# t/partition_syntax_ndb.test                                                  #
 
3
#                                                                              #
 
4
# Purpose:                                                                     #
 
5
#  Tests around Create Partitioned table syntax                                #
 
6
#        NDB branch                                                            #
 
7
#                                                                              #
 
8
#------------------------------------------------------------------------------#
 
9
# Original Author: mleich                                                      #
 
10
# Original Date: 2006-03-05                                                    #
 
11
# Change Author:                                                               #
 
12
# Change Date:                                                                 #
 
13
# Change:                                                                      #
 
14
################################################################################
 
15
 
 
16
#
 
17
# NOTE: PLEASE DO NOT ADD NOT NDB SPECIFIC TESTCASES HERE !
 
18
#       TESTCASES WHICH MUST BE APPLIED TO ALL STORAGE ENGINES MUST BE ADDED IN
 
19
#       THE SOURCED FILES ONLY.
 
20
#
 
21
# Please read the README at the end of inc/partition.pre before changing
 
22
# any of the variables.
 
23
#
 
24
 
 
25
#------------------------------------------------------------------------------#
 
26
# General not engine specific settings and requirements
 
27
 
 
28
##### Options, for debugging support #####
 
29
let $debug= 0;
 
30
 
 
31
##### Option, for displaying files #####
 
32
let $ls= 1;
 
33
 
 
34
##### Number of rows for the INSERT/UPDATE/DELETE/SELECT experiments #####
 
35
#     on partioned tables
 
36
SET @max_row = 20;
 
37
 
 
38
##### Execute more tests                                             #####
 
39
let $more_trigger_tests= 0;
 
40
let $more_pk_ui_tests= 0;
 
41
 
 
42
# The server must support partitioning. But NDB is partitioned from the start.
 
43
# Thats why the next line is set to comment.
 
44
# --source include/have_partition.inc
 
45
 
 
46
#------------------------------------------------------------------------------#
 
47
# Engine specific settings and requirements
 
48
 
 
49
##### Storage engine to be tested
 
50
--source include/have_ndb.inc
 
51
let $engine= 'ndbcluster';
 
52
connection default;
 
53
 
 
54
# range, list and hash partitioning in ndb requires new_mode
 
55
--disable_query_log
 
56
set new=on;
 
57
--enable_query_log
 
58
##### Execute the test of "table" files
 
59
# NDB has no files per PK, UI, ...
 
60
let $do_file_tests= 0;
 
61
 
 
62
##### Execute PRIMARY KEY tests                                      #####
 
63
# AFAIK NDB is always partitioned using the explicit defined PRIMARY KEY
 
64
#       or uses an internal one.
 
65
let $do_pk_tests= 1;
 
66
 
 
67
##### Assign a big number smaller than the maximum value for partitions  #####
 
68
#     and smaller than the maximum value of SIGNED INTEGER
 
69
# The NDB handler only supports 32 bit integers in VALUES
 
70
#     2147483647 seems to be too big.
 
71
let $MAX_VALUE= (2147483646);
 
72
 
 
73
# Generate the prerequisites ($variables, @variables, tables) needed
 
74
--source suite/parts/inc/partition.pre
 
75
 
 
76
##### Workarounds for known open engine specific bugs
 
77
# Bug#18735: Partitions: NDB, UNIQUE INDEX, UPDATE, strange server response
 
78
let $fixed_bug18735= 0;
 
79
 
 
80
#------------------------------------------------------------------------------#
 
81
# Execute the tests to be applied to all storage engines
 
82
--source suite/parts/inc/partition_syntax.inc
 
83
 
 
84
#------------------------------------------------------------------------------#
 
85
# Execute storage engine specific tests
 
86
 
 
87
#------------------------------------------------------------------------------#
 
88
# Cleanup
 
89
--source suite/parts/inc/partition_cleanup.inc