mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
|
# Setup things for handler.inc
|
||
|
#
|
||
|
# Input variables
|
||
|
# $engine_type -- storage engine to be tested
|
||
|
# $key_type -- set if you want a non standard key type
|
||
|
#
|
||
|
# This scripts sets up default values for:
|
||
|
# $other_engine_type -- storage engine <> $engine_type
|
||
|
# $other_handler_engine_type -- storage engine <> $engine_type, if possible
|
||
|
# 1. $other_handler_engine_type must support handler
|
||
|
# 2. $other_handler_engine_type must point to an all
|
||
|
# time available storage engine
|
||
|
# have to be set before sourcing this script.
|
||
|
#
|
||
|
# Handler tests don't work with embedded server
|
||
|
#
|
||
|
-- source include/not_embedded.inc
|
||
|
|
||
|
eval SET SESSION STORAGE_ENGINE = $engine_type;
|
||
|
let $other_engine_type= CSV;
|
||
|
let $other_handler_engine_type= MyISAM;
|
||
|
|
||
|
--disable_warnings
|
||
|
drop table if exists t1,t3,t4,t5;
|
||
|
--enable_warnings
|
||
|
|
||
|
# Create default test table
|
||
|
|
||
|
eval create table t1 (a int, b char(10), key a $key_type (a), key b $key_type (a,b));
|
||
|
insert into t1 values
|
||
|
(17,"ddd"),(18,"eee"),(19,"fff"),(19,"yyy"),
|
||
|
(14,"aaa"),(16,"ccc"),(16,"xxx"),
|
||
|
(20,"ggg"),(21,"hhh"),(22,"iii");
|