Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1d9d3513
Commit
1d9d3513
authored
Oct 26, 2017
by
Aleksey Midenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQL, Test: main suite [fixes #300]
parent
73f655d5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
11 deletions
+31
-11
mysql-test/r/mysqld--help.result
mysql-test/r/mysqld--help.result
+19
-0
mysql-test/r/partition.result
mysql-test/r/partition.result
+1
-1
mysql-test/r/partition_error.result
mysql-test/r/partition_error.result
+7
-7
mysql-test/t/mysqld--help.test
mysql-test/t/mysqld--help.test
+0
-1
sql/item_timefunc.cc
sql/item_timefunc.cc
+2
-1
sql/sql_partition.cc
sql/sql_partition.cc
+2
-1
No files found.
mysql-test/r/mysqld--help.result
View file @
1d9d3513
...
@@ -1272,6 +1272,25 @@ The following options may be given as the first argument:
...
@@ -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
...
...
mysql-test/r/partition.result
View file @
1d9d3513
...
@@ -1459,7 +1459,7 @@ ERROR 42000: Wrong number of subpartitions defined, mismatch with previous setti
...
@@ -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));
...
...
mysql-test/r/partition_error.result
View file @
1d9d3513
...
@@ -1023,7 +1023,7 @@ c int not null,
...
@@ -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,
...
@@ -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,
...
@@ -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,
...
@@ -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,
...
@@ -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,
...
@@ -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,
...
@@ -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,
...
...
mysql-test/t/mysqld--help.test
View file @
1d9d3513
...
@@ -5,7 +5,6 @@
...
@@ -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)
...
...
sql/item_timefunc.cc
View file @
1d9d3513
...
@@ -1692,7 +1692,8 @@ Item_func_now::Item_func_now(THD *thd, uint dec) :
...
@@ -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
;
}
}
...
...
sql/sql_partition.cc
View file @
1d9d3513
...
@@ -5104,7 +5104,8 @@ that are reorganised.
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment