1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

SQL, Test: main suite [fixes #300]

This commit is contained in:
Aleksey Midenkov
2017-10-26 18:14:54 +03:00
parent 73f655d576
commit 1d9d351346
6 changed files with 31 additions and 11 deletions

View File

@ -1272,6 +1272,25 @@ The following options may be given as the first argument:
-v, --verbose Used with --help option for detailed help. -v, --verbose Used with --help option for detailed help.
-V, --version[=name] -V, --version[=name]
Output version information and exit. Output version information and exit.
--versioning-alter-history=name
Versioning ALTER TABLE mode. KEEP: leave historical
system rows as is on ALTER TABLE; SURVIVE: use DDL
survival feature; DROP: delete historical system rows on
ALTER TABLE
--versioning-asof-timestamp=name
Default AS OF value for versioned queries
--versioning-force Force system versioning for all created tables
--versioning-hide=name
Hide system versioning from being displayed in table
info. AUTO: hide implicit system fields only in
non-versioned and AS OF queries; IMPLICIT: hide implicit
system fields in all queries; FULL: hide any system
fields in all queries and hide versioning info in SHOW
commands; NEVER: don't hide system fields
--versioning-innodb-algorithm-simple
Use simple algorithm of timestamp handling in InnoDB
instead of TRX_SEES
(Defaults to on; use --skip-versioning-innodb-algorithm-simple to disable.)
--wait-timeout=# The number of seconds the server waits for activity on a --wait-timeout=# The number of seconds the server waits for activity on a
connection before closing it connection before closing it

View File

@ -1459,7 +1459,7 @@ ERROR 42000: Wrong number of subpartitions defined, mismatch with previous setti
create table t1 (a int) create table t1 (a int)
partition by hash (a) partition by hash (a)
(partition p0 (subpartition sp0)); (partition p0 (subpartition sp0));
ERROR HY000: It is only possible to mix RANGE/LIST/SYSTEM_TIME partitioning with HASH/KEY partitioning for subpartitioning ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
create table t1 (a int) create table t1 (a int)
partition by range (a) partition by range (a)
(partition p0 values less than (1)); (partition p0 values less than (1));

View File

@ -1023,7 +1023,7 @@ c int not null,
primary key (a,b)) primary key (a,b))
partition by key (a) partition by key (a)
subpartition by key (b); subpartition by key (b);
ERROR HY000: It is only possible to mix RANGE/LIST/SYSTEM_TIME partitioning with HASH/KEY partitioning for subpartitioning ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
select load_file('$MYSQLD_DATADIR/test/t1.par'); select load_file('$MYSQLD_DATADIR/test/t1.par');
load_file('$MYSQLD_DATADIR/test/t1.par') load_file('$MYSQLD_DATADIR/test/t1.par')
NULL NULL
@ -1034,7 +1034,7 @@ c int not null,
primary key (a,b)) primary key (a,b))
partition by key (a) partition by key (a)
subpartition by key (a, b); subpartition by key (a, b);
ERROR HY000: It is only possible to mix RANGE/LIST/SYSTEM_TIME partitioning with HASH/KEY partitioning for subpartitioning ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
select load_file('$MYSQLD_DATADIR/test/t1.par'); select load_file('$MYSQLD_DATADIR/test/t1.par');
load_file('$MYSQLD_DATADIR/test/t1.par') load_file('$MYSQLD_DATADIR/test/t1.par')
NULL NULL
@ -1045,7 +1045,7 @@ c int not null,
primary key (a,b)) primary key (a,b))
partition by key (a) partition by key (a)
subpartition by hash (a+b); subpartition by hash (a+b);
ERROR HY000: It is only possible to mix RANGE/LIST/SYSTEM_TIME partitioning with HASH/KEY partitioning for subpartitioning ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
select load_file('$MYSQLD_DATADIR/test/t1.par'); select load_file('$MYSQLD_DATADIR/test/t1.par');
load_file('$MYSQLD_DATADIR/test/t1.par') load_file('$MYSQLD_DATADIR/test/t1.par')
NULL NULL
@ -1056,7 +1056,7 @@ c int not null,
primary key (a,b)) primary key (a,b))
partition by key (a) partition by key (a)
subpartition by key (b); subpartition by key (b);
ERROR HY000: It is only possible to mix RANGE/LIST/SYSTEM_TIME partitioning with HASH/KEY partitioning for subpartitioning ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
select load_file('$MYSQLD_DATADIR/test/t1.par'); select load_file('$MYSQLD_DATADIR/test/t1.par');
load_file('$MYSQLD_DATADIR/test/t1.par') load_file('$MYSQLD_DATADIR/test/t1.par')
NULL NULL
@ -1067,7 +1067,7 @@ c int not null,
primary key (a,b)) primary key (a,b))
partition by key (a) partition by key (a)
subpartition by key (a, b); subpartition by key (a, b);
ERROR HY000: It is only possible to mix RANGE/LIST/SYSTEM_TIME partitioning with HASH/KEY partitioning for subpartitioning ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
select load_file('$MYSQLD_DATADIR/test/t1.par'); select load_file('$MYSQLD_DATADIR/test/t1.par');
load_file('$MYSQLD_DATADIR/test/t1.par') load_file('$MYSQLD_DATADIR/test/t1.par')
NULL NULL
@ -1078,7 +1078,7 @@ c int not null,
primary key (a,b)) primary key (a,b))
partition by key (a) partition by key (a)
subpartition by hash (a+b); subpartition by hash (a+b);
ERROR HY000: It is only possible to mix RANGE/LIST/SYSTEM_TIME partitioning with HASH/KEY partitioning for subpartitioning ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
select load_file('$MYSQLD_DATADIR/test/t1.par'); select load_file('$MYSQLD_DATADIR/test/t1.par');
load_file('$MYSQLD_DATADIR/test/t1.par') load_file('$MYSQLD_DATADIR/test/t1.par')
NULL NULL
@ -1135,7 +1135,7 @@ c int not null,
primary key (a,b)) primary key (a,b))
partition by key (a) partition by key (a)
subpartition by hash (3+4); subpartition by hash (3+4);
ERROR HY000: It is only possible to mix RANGE/LIST/SYSTEM_TIME partitioning with HASH/KEY partitioning for subpartitioning ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,

View File

@ -5,7 +5,6 @@
--source include/have_perfschema.inc --source include/have_perfschema.inc
--source include/have_profiling.inc --source include/have_profiling.inc
--source include/platform.inc --source include/platform.inc
--source include/have_xtradb.inc
# #
# force lower-case-table-names=1 (linux/macosx have different defaults) # force lower-case-table-names=1 (linux/macosx have different defaults)

View File

@ -1692,7 +1692,8 @@ Item_func_now::Item_func_now(THD *thd, uint dec) :
Item_datetimefunc(thd, new (thd->mem_root) Item_decimal(thd, dec, TRUE)), Item_datetimefunc(thd, new (thd->mem_root) Item_decimal(thd, dec, TRUE)),
last_query_id(0) last_query_id(0)
{ {
decimals = dec; decimals= dec;
maybe_null= true;
} }

View File

@ -5104,7 +5104,8 @@ that are reorganised.
if (is_name_in_list(part_elem->partition_name, if (is_name_in_list(part_elem->partition_name,
alter_info->partition_names)) alter_info->partition_names))
{ {
if (part_elem->type() == partition_element::AS_OF_NOW) if (tab_part_info->part_type == VERSIONING_PARTITION &&
part_elem->type() == partition_element::AS_OF_NOW)
{ {
DBUG_ASSERT(table && table->s && table->s->table_name.str); DBUG_ASSERT(table && table->s && table->s->table_name.str);
my_error(ER_VERS_WRONG_PARTS, MYF(0), table->s->table_name.str); my_error(ER_VERS_WRONG_PARTS, MYF(0), table->s->table_name.str);