~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
################################################################################
 
2
# t/partition_basic_ndb.test                                                   #
 
3
#                                                                              #
 
4
# Purpose:                                                                     #
 
5
#  Tests around Create Partitioned table                                       #
 
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
let $with_partitioning= 1;
 
31
 
 
32
##### Option, for displaying files #####
 
33
let $ls= 1;
 
34
 
 
35
##### Number of rows for the INSERT/UPDATE/DELETE/SELECT experiments #####
 
36
#     on partioned tables
 
37
SET @max_row = 20;
 
38
 
 
39
##### Execute more tests                                             #####
 
40
let $more_trigger_tests= 0;
 
41
let $more_pk_ui_tests= 0;
 
42
 
 
43
# The server must support partitioning. But NDB is partitioned from the start.
 
44
# Thats why the next line is set to comment.
 
45
# --source include/have_partition.inc
 
46
 
 
47
#------------------------------------------------------------------------------#
 
48
# Engine specific settings and requirements
 
49
 
 
50
##### Storage engine to be tested
 
51
--source include/have_ndb.inc
 
52
let $engine= 'ndbcluster';
 
53
connection default;
 
54
 
 
55
# range, list and hash partitioning in ndb requires new_mode
 
56
--disable_query_log
 
57
set new=on;
 
58
--enable_query_log
 
59
##### Execute the test of "table" files
 
60
# NDB has no files per PK, UI, ...
 
61
let $do_file_tests= 0;
 
62
 
 
63
##### Execute PRIMARY KEY tests                                      #####
 
64
# AFAIK NDB is always partitioned using the explicit defined PRIMARY KEY
 
65
#       or uses an internal one.
 
66
let $do_pk_tests= 1;
 
67
 
 
68
##### Assign a big number smaller than the maximum value for partitions  #####
 
69
#     and smaller than the maximum value of SIGNED INTEGER
 
70
# The NDB handler only supports 32 bit integers in VALUES
 
71
#     2147483647 seems to be too big.
 
72
let $MAX_VALUE= (2147483646);
 
73
 
 
74
# Generate the prerequisites ($variables, @variables, tables) needed
 
75
--source suite/parts/inc/partition.pre
 
76
 
 
77
##### Workarounds for known open engine specific bugs
 
78
# Bug#18730 Partitions: NDB, crash on SELECT MIN(<unique column>)
 
79
let $fixed_bug18730= 1;
 
80
# Bug#18735: Partitions: NDB, UNIQUE INDEX, UPDATE, strange server response
 
81
let $fixed_bug18735= 0;
 
82
 
 
83
#------------------------------------------------------------------------------#
 
84
# Execute the tests to be applied to all storage engines
 
85
--source suite/parts/inc/partition_basic.inc
 
86
 
 
87
#------------------------------------------------------------------------------#
 
88
# Execute storage engine specific tests
 
89
 
 
90
#------------------------------------------------------------------------------#
 
91
# Cleanup
 
92
--source suite/parts/inc/partition_cleanup.inc