mirror of
https://github.com/MariaDB/server.git
synced 2025-11-30 05:23:50 +03:00
System Versioning 1.0 pre5 [closes #407]
Merge branch '10.3' into trunk Both field_visibility and VERS_HIDDEN_FLAG exist independently. TODO: VERS_HIDDEN_FLAG should be replaced with SYSTEM_INVISIBLE (or COMPLETELY_INVISIBLE?).
This commit is contained in:
@@ -17,59 +17,59 @@ a b b+0
|
||||
1 NULL NULL
|
||||
3 NULL NULL
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select * from t for system_time as of timestamp now(6);
|
||||
a b
|
||||
1 NULL
|
||||
3 NULL
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select count(*) from t group by b for system_time as of timestamp now(6);
|
||||
count(*)
|
||||
2
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select * from t for system_time as of timestamp now(6) order by b asc;
|
||||
a b
|
||||
1 NULL
|
||||
3 NULL
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select * from t for system_time as of timestamp now(6) order by b desc;
|
||||
a b
|
||||
1 NULL
|
||||
3 NULL
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select * from t group by a having a=2 for system_time as of timestamp now(6);
|
||||
a b
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select * from t group by b having b=2 for system_time as of timestamp now(6);
|
||||
a b
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select a from t where b=2 for system_time as of timestamp now(6);
|
||||
a
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select a from t where b=NULL for system_time as of timestamp now(6);
|
||||
a
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select a from t where b is NULL for system_time as of timestamp now(6);
|
||||
a
|
||||
1
|
||||
3
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select count(*), b from t group by b having b=NULL for system_time as of timestamp now(6);
|
||||
count(*) b
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select a, b from t;
|
||||
a b
|
||||
1 2
|
||||
@@ -78,29 +78,29 @@ select count(*) from t for system_time as of timestamp now(6) group by b;
|
||||
count(*)
|
||||
2
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select * from t for system_time as of timestamp now(6) group by b having b=2;
|
||||
a b
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select a from t for system_time as of timestamp now(6) where b=2;
|
||||
a
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select a from t for system_time as of timestamp now(6) where b=NULL;
|
||||
a
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select a from t for system_time as of timestamp now(6) where b is NULL;
|
||||
a
|
||||
1
|
||||
3
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select count(*), b from t for system_time as of timestamp now(6) group by b having b=NULL;
|
||||
count(*) b
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
create or replace table t (
|
||||
a int,
|
||||
b int not null without system versioning
|
||||
@@ -111,12 +111,12 @@ a b
|
||||
1 NULL
|
||||
3 NULL
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
select * from t for system_time as of timestamp now(6) where b is NULL;
|
||||
a b
|
||||
1 NULL
|
||||
3 NULL
|
||||
Warnings:
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4111 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4112 Attempt to read unversioned field `b` in historical query
|
||||
drop table t;
|
||||
|
||||
@@ -78,7 +78,7 @@ ERROR HY000: Wrong partitions consistency for `t1`: must have at least one 'VERS
|
||||
alter table t1 add partition (
|
||||
partition p1 versioning);
|
||||
Warnings:
|
||||
Warning 4114 Maybe missing parameters: no rotation condition for multiple `VERSIONING` partitions.
|
||||
Warning 4115 Maybe missing parameters: no rotation condition for multiple `VERSIONING` partitions.
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
@@ -215,7 +215,7 @@ x
|
||||
2
|
||||
delete from t1;
|
||||
Warnings:
|
||||
Note 4115 Switching from partition `p0` to `p1`
|
||||
Note 4116 Switching from partition `p0` to `p1`
|
||||
select * from t1 partition (p0) for system_time all;
|
||||
x
|
||||
1
|
||||
@@ -225,7 +225,7 @@ x
|
||||
insert into t1 values (3);
|
||||
delete from t1;
|
||||
Warnings:
|
||||
Warning 4113 Using full partition `p1`, need more VERSIONING partitions!
|
||||
Warning 4114 Using full partition `p1`, need more VERSIONING partitions!
|
||||
select * from t1 partition (p1) for system_time all;
|
||||
x
|
||||
2
|
||||
@@ -258,7 +258,7 @@ x
|
||||
insert into t1 values (4);
|
||||
delete from t1;
|
||||
Warnings:
|
||||
Note 4115 Switching from partition `p0` to `p1`
|
||||
Note 4116 Switching from partition `p0` to `p1`
|
||||
select * from t1 partition (p1) for system_time all;
|
||||
x
|
||||
4
|
||||
@@ -280,8 +280,8 @@ x
|
||||
2
|
||||
delete from t1;
|
||||
Warnings:
|
||||
Note 4115 Switching from partition `p0` to `p1`
|
||||
Warning 4113 Using full partition `p1`, need more VERSIONING partitions!
|
||||
Note 4116 Switching from partition `p0` to `p1`
|
||||
Warning 4114 Using full partition `p1`, need more VERSIONING partitions!
|
||||
select * from t1 partition (p0sp0) for system_time all;
|
||||
x
|
||||
1
|
||||
|
||||
Reference in New Issue
Block a user