mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
846494a48e
REORGANIZE TEST parts WHERE ENGINE='NDB' ;) Updated tests for better matching NDB's limitations. Removed some duplicate tests.
89 lines
3.8 KiB
Text
89 lines
3.8 KiB
Text
################################################################################
|
|
# t/partition_alter1_2_ndb.test #
|
|
# #
|
|
# Purpose: #
|
|
# Tests around ADD/DROP PRIMARY KEY and/or UNIQUE INDEX #
|
|
# NDB branch #
|
|
# #
|
|
#------------------------------------------------------------------------------#
|
|
# Original Author: mleich #
|
|
# Original Date: 2006-03-05 #
|
|
# Change Author: pcrews #
|
|
# Change Date: 2008-05-05 #
|
|
# Change: Split up original partition_alter1.test file to better accommodate #
|
|
# PushBuild machines' workloads. Total run time for all components #
|
|
# is essentially the same, but max. single run time is significantly #
|
|
# reduced #
|
|
################################################################################
|
|
|
|
#
|
|
# 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.
|
|
#
|
|
# Please read the README at the end of inc/partition.pre before changing
|
|
# any of the variables.
|
|
#
|
|
|
|
#------------------------------------------------------------------------------#
|
|
# General not engine specific settings and requirements
|
|
--source include/big_test.inc
|
|
|
|
##### Options, for debugging support #####
|
|
let $debug= 0;
|
|
|
|
##### 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
|
|
let $engine= 'ndbcluster';
|
|
connection default;
|
|
|
|
##### 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
|
|
--source suite/parts/inc/partition.pre
|
|
|
|
##### Workarounds for known open engine specific bugs
|
|
# Bug#18735: Partitions: NDB, UNIQUE INDEX, UPDATE, strange server response
|
|
let $fixed_bug18735= 1;
|
|
|
|
#------------------------------------------------------------------------------#
|
|
# Execute the tests to be applied to all storage engines
|
|
--source suite/parts/inc/partition_alter1_2.inc
|
|
|
|
#------------------------------------------------------------------------------#
|
|
# Execute storage engine specific tests
|
|
|
|
#------------------------------------------------------------------------------#
|
|
# Cleanup
|
|
--source suite/parts/inc/partition_cleanup.inc
|