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
eab47126
Commit
eab47126
authored
Dec 13, 2017
by
Aleksey Midenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Paritioning: better error for disabled IB engine
parent
8e8363bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
mysql-test/suite/versioning/r/partition.result
mysql-test/suite/versioning/r/partition.result
+1
-1
mysql-test/suite/versioning/t/partition.test
mysql-test/suite/versioning/t/partition.test
+2
-2
sql/partition_info.cc
sql/partition_info.cc
+1
-1
No files found.
mysql-test/suite/versioning/r/partition.result
View file @
eab47126
...
...
@@ -31,7 +31,7 @@ create or replace table t1 (x int)
partition by system_time (
partition p0 versioning,
partition pn as of current_timestamp);
ERROR HY000:
System Versioning required: t1
ERROR HY000:
Engine does not support System Versioning for `t1`
create or replace table t1 (x int);
alter table t1
partition by system_time (
...
...
mysql-test/suite/versioning/t/partition.test
View file @
eab47126
...
...
@@ -22,14 +22,14 @@ select * from t1 partition (p1) for system_time all;
### check server-level partitioning
# create errors
--
error
ER_VERS
IONING_REQUIR
ED
--
error
ER_VERS
_ENGINE_UNSUPPORT
ED
create
or
replace
table
t1
(
x
int
)
partition
by
system_time
(
partition
p0
versioning
,
partition
pn
as
of
current_timestamp
);
create
or
replace
table
t1
(
x
int
);
--
error
ER_VERS
IONING_REQUIRED
,
ER_VERSIONING_REQUIR
ED
--
error
ER_VERS
_ENGINE_UNSUPPORTED
,
ER_VERS_ENGINE_UNSUPPORT
ED
alter
table
t1
partition
by
system_time
(
partition
p0
versioning
,
...
...
sql/partition_info.cc
View file @
eab47126
...
...
@@ -953,7 +953,7 @@ bool partition_info::vers_setup_expression(THD * thd, uint32 alter_add)
if
(
!
table
->
versioned_by_sql
())
{
my_error
(
ER_VERS
IONING_REQUIR
ED
,
MYF
(
0
),
table
->
s
->
table_name
.
str
);
my_error
(
ER_VERS
_ENGINE_UNSUPPORT
ED
,
MYF
(
0
),
table
->
s
->
table_name
.
str
);
return
true
;
}
...
...
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