mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
ee5eb8bbe1
BitKeeper/etc/ignore: Added mysql-test/suite/funcs_1/r/innodb_views.warnings mysql-test/suite/funcs_1/r/memory_trig_03e.warnings mysql-test/suite/funcs_1/r/memory_views.warnings mysql-test/suite/funcs_1/r/myisam_trig_03e.warnings mysql-test/suite/funcs_1/r/myisam_views.warnings mysql-test/suite/funcs_1/r/ndb_trig_03e.warnings mysql-test/suite/funcs_1/r/ndb_views.warnings mysql-test/suite/partitions/r/diff mysql-test/suite/partitions/r/partition_bit_ndb.warnings mysql-test/suite/partitions/r/partition_special_innodb.warnings mysql-test/suite/partitions/r/partition_special_myisam.warnings storage/archive/archive_reader mysql-test/suite/funcs_1/r/innodb_trig_03e.warnings to the ignore list mysql-test/suite/funcs_2/include/check_charset.inc: inserted newline at the end of file. mysql-test/suite/objects/include/drop_all.inc: inserted newline at the end of file. mysql-test/suite/partitions/include/partition_key_32col.inc: inserted newline at the end of file. mysql-test/suite/rpl/data/rpl_mixed.dat: inserted newline at the end of file. mysql-test/suite/rpl/include/rpl_mixed_check_event.inc: inserted newline at the end of file. mysql-test/suite/rpl/include/rpl_mixed_check_select.inc: inserted newline at the end of file. mysql-test/suite/rpl/include/rpl_mixed_check_user.inc: inserted newline at the end of file. mysql-test/suite/rpl/include/rpl_mixed_check_view.inc: inserted newline at the end of file.
149 lines
5.8 KiB
PHP
149 lines
5.8 KiB
PHP
################################################################################
|
|
# t/partition_blocked_sql_funcs.inc #
|
|
# #
|
|
# Purpose: #
|
|
# Tests around sql functions #
|
|
# #
|
|
# #
|
|
#------------------------------------------------------------------------------#
|
|
# Original Author: HH #
|
|
# Original Date: 2006-11-22 #
|
|
# Change Author: #
|
|
# Change Date: #
|
|
# Change: #
|
|
################################################################################
|
|
--echo -------------------------------------------------------------------------
|
|
--echo --- $sqlfunc in partition with coltype $coltype
|
|
--echo -------------------------------------------------------------------------
|
|
--echo must all fail! (delete 0 and comment char, if bug fixed)
|
|
--disable_abort_on_error
|
|
--disable_warnings
|
|
drop table if exists t1 ;
|
|
drop table if exists t2 ;
|
|
drop table if exists t3 ;
|
|
drop table if exists t4 ;
|
|
drop table if exists t5 ;
|
|
drop table if exists t6 ;
|
|
--enable_warnings
|
|
|
|
#--error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval create table t1 (col1 $coltype) engine=$engine
|
|
partition by range($sqlfunc)
|
|
(partition p0 values less than (15),
|
|
partition p1 values less than (31));
|
|
|
|
#--error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval create table t2 (col1 $coltype) engine=$engine
|
|
partition by list($sqlfunc)
|
|
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
|
|
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
|
|
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
|
|
|
|
#--error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval create table t3 (col1 $coltype) engine=$engine
|
|
partition by hash($sqlfunc);
|
|
--enable_abort_on_error
|
|
|
|
--error 0,ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval create table t4 (colint int, col1 $coltype) engine=$engine
|
|
partition by range(colint)
|
|
subpartition by hash($sqlfunc) subpartitions 2
|
|
(partition p0 values less than (15),
|
|
partition p1 values less than (31));
|
|
|
|
--error 0,ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval create table t5 (colint int, col1 $coltype) engine=$engine
|
|
partition by list(colint)
|
|
subpartition by hash($sqlfunc) subpartitions 2
|
|
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
|
|
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
|
|
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
|
|
|
|
--error 0,ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval create table t6 (colint int, col1 $coltype) engine=$engine
|
|
partition by range(colint)
|
|
(partition p0 values less than ($valsqlfunc),
|
|
partition p1 values less than maxvalue);
|
|
|
|
--disable_abort_on_error
|
|
--disable_warnings
|
|
drop table if exists t11 ;
|
|
drop table if exists t22 ;
|
|
drop table if exists t33 ;
|
|
drop table if exists t44 ;
|
|
drop table if exists t55 ;
|
|
drop table if exists t66 ;
|
|
--enable_warnings
|
|
|
|
#--error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval create table t11 (col1 $coltype) engine=$engine ;
|
|
|
|
#--error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval create table t22 (col1 $coltype) engine=$engine ;
|
|
|
|
#--error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval create table t33 (col1 $coltype) engine=$engine ;
|
|
|
|
--error 0,ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval create table t44 (colint int, col1 $coltype) engine=$engine ;
|
|
|
|
--error 0,ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval create table t55 (colint int, col1 $coltype) engine=$engine ;
|
|
|
|
--error 0,ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval create table t66 (colint int, col1 $coltype) engine=$engine ;
|
|
|
|
#--error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval alter table t11
|
|
partition by range($sqlfunc)
|
|
(partition p0 values less than (15),
|
|
partition p1 values less than (31));
|
|
|
|
#--error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval alter table t22
|
|
partition by list($sqlfunc)
|
|
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
|
|
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
|
|
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
|
|
|
|
#--error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval alter table t33
|
|
partition by hash($sqlfunc);
|
|
--enable_abort_on_error
|
|
|
|
--error 0,ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval alter table t44
|
|
partition by range(colint)
|
|
subpartition by hash($sqlfunc) subpartitions 2
|
|
(partition p0 values less than (15),
|
|
partition p1 values less than (31));
|
|
|
|
--error 0,ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval alter table t55
|
|
partition by list(colint)
|
|
subpartition by hash($sqlfunc) subpartitions 2
|
|
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
|
|
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
|
|
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
|
|
|
|
--error 0,ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,ER_PARSE_ERROR
|
|
eval alter table t66
|
|
partition by range(colint)
|
|
(partition p0 values less than ($valsqlfunc),
|
|
partition p1 values less than maxvalue);
|
|
|
|
--disable_warnings
|
|
drop table if exists t1 ;
|
|
drop table if exists t2 ;
|
|
drop table if exists t3 ;
|
|
drop table if exists t4 ;
|
|
drop table if exists t5 ;
|
|
drop table if exists t6 ;
|
|
drop table if exists t11 ;
|
|
drop table if exists t22 ;
|
|
drop table if exists t33 ;
|
|
drop table if exists t44 ;
|
|
drop table if exists t55 ;
|
|
drop table if exists t66 ;
|
|
--enable_warnings
|
|
|