mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
6c610ed979
- Linking now with g++ instead of gcc with 'compile-dist' to solve problems with handlersocket/client - Fixed bug in heap tables when doing handler read next-prev over last row BUILD/compile-dist: - Linking now with g++ instead of gcc with 'compile-dist' to solve problems with handlersocket/client cmd-line-utils/libedit/vi.c: Fixed compiler warning about not checking return value for write mysql-test/r/index_intersect.result: Updated results (missed this file in my last push) mysql-test/suite/handler/aria.result: Updated test results mysql-test/suite/handler/handler.inc: Changed test to use read next/read prev on key where there are duplicates that can come in different order depending on system Added testing of read next-prev over last row and read prev-next around first row mysql-test/suite/handler/heap.result: Updated test results mysql-test/suite/handler/init.inc: More rows to test mysql-test/suite/handler/innodb.result: Updated test results mysql-test/suite/handler/interface.result: Updated test results mysql-test/suite/handler/myisam.result: Updated test results mysql-test/t/variables-big.test: Fixed test to not fail on windows mysql-test/valgrind.supp: Removed not matching fun: to get rid of valgrind warning storage/heap/hp_rfirst.c: Added state so that we know if we have an active position in the index. storage/heap/hp_rkey.c: Added state so that we know if we have an active position in the index. storage/heap/hp_rnext.c: Handle reading several next after finding the last row (this caused a crash before) storage/heap/hp_rprev.c: Handle reading several prev after finding the first row (this caused a crash before) storage/xtradb/buf/buf0buf.c: Fixed compiler warning about uninitialized value
33 lines
1.2 KiB
SQL
33 lines
1.2 KiB
SQL
# 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"),(23,"xxx"),(24,"xxx"),(25,"xxx");
|