mariadb/mysql-test/t/partition_csv.test

39 lines
1 KiB
Text
Raw Normal View History

# Tests for the partition storage engine in connection with the
# storage engine CSV.
#
# Creation:
# 2007-10-18 mleich - Move CSV related sub tests of partition.test to
# this test. Reason: CSV is not everytime available.
# - Minor cleanup
#
--source include/have_partition.inc
--source include/have_csv.inc
#
# Bug#19307: Partitions: csv delete failure
# = CSV engine crashes
#
--disable_warnings
drop table if exists t1;
--enable_warnings
--error ER_PARTITION_MERGE_ERROR
create table t1 (a int)
engine = csv
partition by list (a)
(partition p0 values in (null));
#
# Bug#27816: Log tables ran with partitions crashes the server when logging
# is enabled.
#
USE mysql;
SET GLOBAL general_log = 0;
ALTER TABLE general_log ENGINE = MyISAM;
--error ER_WRONG_USAGE
ALTER TABLE general_log PARTITION BY RANGE (TO_DAYS(event_time))
(PARTITION p0 VALUES LESS THAN (733144),
PARTITION p1 VALUES LESS THAN (3000000));
ALTER TABLE general_log ENGINE = CSV;
SET GLOBAL general_log = 1;