mirror of
https://github.com/MariaDB/server.git
synced 2025-12-07 17:42:39 +03:00
fix use-after-free [closes #89]
This commit is contained in:
@@ -276,7 +276,7 @@ t CREATE TABLE `t` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
|
||||
alter table t without system versioning;
|
||||
alter table t with system versioning, algorithm=inplace;
|
||||
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY.
|
||||
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
||||
alter table t with system versioning, algorithm=copy;
|
||||
show create table t;
|
||||
Table Create Table
|
||||
@@ -346,7 +346,7 @@ a
|
||||
2
|
||||
1
|
||||
alter table t without system versioning, algorithm=inplace;
|
||||
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY.
|
||||
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
||||
alter table t without system versioning, algorithm=copy;
|
||||
show create table t;
|
||||
Table Create Table
|
||||
|
||||
@@ -18,6 +18,7 @@ a b b+0
|
||||
3 NULL NULL
|
||||
Warnings:
|
||||
Warning 4075 Attempt to read unversioned field `b` in historical query
|
||||
Warning 4075 Attempt to read unversioned field `b` in historical query
|
||||
select * from t for system_time as of timestamp now(6);
|
||||
a b
|
||||
1 NULL
|
||||
|
||||
Reference in New Issue
Block a user