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
b4cd2d3c
Commit
b4cd2d3c
authored
Aug 18, 2017
by
Eugene Kosov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: duplicate system versioning field
parent
99baeaa9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
mysql-test/suite/versioning/r/create.result
mysql-test/suite/versioning/r/create.result
+6
-0
mysql-test/suite/versioning/t/create.test
mysql-test/suite/versioning/t/create.test
+8
-0
No files found.
mysql-test/suite/versioning/r/create.result
View file @
b4cd2d3c
...
...
@@ -353,5 +353,11 @@ create or replace table t1 (a int, id int) with system versioning engine INNODB_
create or replace table t2 (b int, id int);
create or replace table t3 as
select t2.b, t1.a, t1.sys_trx_start, t1.sys_trx_end from t2 inner join t1 on t2.id=t1.id;
create or replace table t (sys_trx_start int);
alter table t with system versioning;
ERROR 42S21: Duplicate column name 'sys_trx_start'
create or replace table t (sys_trx_end int);
alter table t with system versioning;
ERROR 42S21: Duplicate column name 'sys_trx_end'
drop database test;
create database test;
mysql-test/suite/versioning/t/create.test
View file @
b4cd2d3c
...
...
@@ -283,5 +283,13 @@ create or replace table t2 (b int, id int);
create
or
replace
table
t3
as
select
t2
.
b
,
t1
.
a
,
t1
.
sys_trx_start
,
t1
.
sys_trx_end
from
t2
inner
join
t1
on
t2
.
id
=
t1
.
id
;
create
or
replace
table
t
(
sys_trx_start
int
);
--
error
ER_DUP_FIELDNAME
alter
table
t
with
system
versioning
;
create
or
replace
table
t
(
sys_trx_end
int
);
--
error
ER_DUP_FIELDNAME
alter
table
t
with
system
versioning
;
drop
database
test
;
create
database
test
;
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