mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-16937 Strict SQL with system versioned tables causes issues (10.4)
Respect system fields in NO_ZERO_DATE mode. This is the subject for refactoring in MDEV-19597 Conflict resolution from 7d5223310789f967106d86ce193ef31b315ecff0
This commit is contained in:
@@ -48,7 +48,7 @@ ASOF_x y
|
||||
7 107
|
||||
8 108
|
||||
9 109
|
||||
select x as FROMTO_x, y from t1 for system_time from '0-0-0 0:0:0' to timestamp @t1;
|
||||
select x as FROMTO_x, y from t1 for system_time from '1970-01-01 00:00' to timestamp @t1;
|
||||
FROMTO_x y
|
||||
0 100
|
||||
1 101
|
||||
@@ -60,7 +60,7 @@ FROMTO_x y
|
||||
7 107
|
||||
8 108
|
||||
9 109
|
||||
select x as BETWAND_x, y from t1 for system_time between '0-0-0 0:0:0' and timestamp @t1;
|
||||
select x as BETWAND_x, y from t1 for system_time between '1970-01-01 00:00' and timestamp @t1;
|
||||
BETWAND_x y
|
||||
0 100
|
||||
1 101
|
||||
@@ -98,7 +98,7 @@ ASOF2_x y
|
||||
7 107
|
||||
8 108
|
||||
9 109
|
||||
select x as FROMTO2_x, y from t1 for system_time from '0-0-0 0:0:0' to @t1;
|
||||
select x as FROMTO2_x, y from t1 for system_time from '1970-01-01 00:00' to @t1;
|
||||
FROMTO2_x y
|
||||
0 100
|
||||
1 101
|
||||
@@ -110,7 +110,7 @@ FROMTO2_x y
|
||||
7 107
|
||||
8 108
|
||||
9 109
|
||||
select x as BETWAND2_x, y from t1 for system_time between timestamp '0-0-0 0:0:0' and timestamp @t1;
|
||||
select x as BETWAND2_x, y from t1 for system_time between timestamp '1970-01-01 00:00' and timestamp @t1;
|
||||
BETWAND2_x y
|
||||
0 100
|
||||
1 101
|
||||
@@ -275,7 +275,7 @@ a b
|
||||
select * from (select * from (select * from t1 cross join t2) as tmp1) as tmp2;
|
||||
a b
|
||||
1 2
|
||||
select * from (select * from t1 cross join t2 for system_time as of timestamp ('0-0-0')) as tmp;
|
||||
select * from (select * from t1 cross join t2 for system_time as of timestamp ('1970-01-01 00:00')) as tmp;
|
||||
a b
|
||||
create or replace table t1(a1 int) with system versioning;
|
||||
create or replace table t2(a2 int) with system versioning;
|
||||
|
Reference in New Issue
Block a user