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
f685604a
Commit
f685604a
authored
Feb 21, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-15103 Assertion in ha_partition::part_records() for updating VIEW
add a test case
parent
62b54273
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
mysql-test/suite/versioning/r/partition.result
mysql-test/suite/versioning/r/partition.result
+8
-0
mysql-test/suite/versioning/t/partition.test
mysql-test/suite/versioning/t/partition.test
+9
-0
No files found.
mysql-test/suite/versioning/r/partition.result
View file @
f685604a
...
...
@@ -534,6 +534,14 @@ i
explain partitions select * from t1 for system_time all where row_end = @ts;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 p1_p1sp0,p1_p1sp1 # NULL NULL NULL NULL # #
#
# MDEV-15103 Assertion in ha_partition::part_records() for updating VIEW
#
create or replace table t1 (pk int primary key, f int) with system versioning
partition by system_time limit 100 (partition p1 history, partition pn current);
insert into t1 values (1,10), (2,20);
create or replace view v1 as select * from t1;
update v1 set f= 30;
# Test cleanup
drop database test;
create database test;
mysql-test/suite/versioning/t/partition.test
View file @
f685604a
...
...
@@ -445,6 +445,15 @@ select * from t1 for system_time all where row_end = @ts;
--
replace_column
5
# 10 # 11 #
explain
partitions
select
*
from
t1
for
system_time
all
where
row_end
=
@
ts
;
--
echo
#
--
echo
# MDEV-15103 Assertion in ha_partition::part_records() for updating VIEW
--
echo
#
create
or
replace
table
t1
(
pk
int
primary
key
,
f
int
)
with
system
versioning
partition
by
system_time
limit
100
(
partition
p1
history
,
partition
pn
current
);
insert
into
t1
values
(
1
,
10
),
(
2
,
20
);
create
or
replace
view
v1
as
select
*
from
t1
;
update
v1
set
f
=
30
;
--
echo
# Test cleanup
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