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
fd4153f0
Commit
fd4153f0
authored
Apr 28, 2018
by
Aleksey Midenkov
Committed by
Sergei Golubchik
May 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-16010 Too many rows with AS OF point_in_the_past_or_NULL
parent
fddaaf72
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
1 deletion
+32
-1
mysql-test/suite/versioning/r/commit_id.result
mysql-test/suite/versioning/r/commit_id.result
+1
-1
mysql-test/suite/versioning/r/trx_id.result
mysql-test/suite/versioning/r/trx_id.result
+13
-0
mysql-test/suite/versioning/t/trx_id.test
mysql-test/suite/versioning/t/trx_id.test
+12
-0
sql/table.cc
sql/table.cc
+6
-0
No files found.
mysql-test/suite/versioning/r/commit_id.result
View file @
fd4153f0
...
...
@@ -62,7 +62,7 @@ A B C D E F
1 1 1 1 1 1
select trt_trx_sees(0, @tx2);
trt_trx_sees(0, @tx2)
NULL
0
set transaction isolation level read uncommitted;
insert into t1 values ();
select sys_trx_start from t1 where id = last_insert_id() into @tx3;
...
...
mysql-test/suite/versioning/r/trx_id.result
View file @
fd4153f0
...
...
@@ -153,5 +153,18 @@ select x, row_start < row_end from t1 for system_time all;
x row_start < row_end
4 1
2 1
# MDEV-16010 Too many rows with AS OF point_in_the_past_or_NULL
create or replace table t1 (
x int,
row_start bigint unsigned as row start invisible,
row_end bigint unsigned as row end invisible,
period for system_time (row_start, row_end)
) with system versioning engine innodb;
insert into t1 (x) values (1);
delete from t1;
select * from t1 for system_time as of timestamp'1990-1-1 00:00';
x
select * from t1 for system_time as of NULL;
x
drop database test;
create database test;
mysql-test/suite/versioning/t/trx_id.test
View file @
fd4153f0
...
...
@@ -141,5 +141,17 @@ update t1 set x= 4;
commit
;
select
x
,
row_start
<
row_end
from
t1
for
system_time
all
;
--
echo
# MDEV-16010 Too many rows with AS OF point_in_the_past_or_NULL
create
or
replace
table
t1
(
x
int
,
row_start
bigint
unsigned
as
row
start
invisible
,
row_end
bigint
unsigned
as
row
end
invisible
,
period
for
system_time
(
row_start
,
row_end
)
)
with
system
versioning
engine
innodb
;
insert
into
t1
(
x
)
values
(
1
);
delete
from
t1
;
select
*
from
t1
for
system_time
as
of
timestamp
'1990-1-1 00:00'
;
select
*
from
t1
for
system_time
as
of
NULL
;
drop
database
test
;
create
database
test
;
sql/table.cc
View file @
fd4153f0
...
...
@@ -8739,6 +8739,12 @@ bool TR_table::query_sees(bool &result, ulonglong trx_id1, ulonglong trx_id0,
return
false
;
}
if
(
trx_id0
==
ULONGLONG_MAX
||
trx_id1
==
0
)
{
result
=
false
;
return
false
;
}
if
(
!
commit_id1
)
{
if
(
!
query
(
trx_id1
))
...
...
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