1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-16804 SYSTEM VERSIONING columns not showing as GENERATED

Closes #830
This commit is contained in:
Aleksey Midenkov
2019-05-20 19:08:03 +02:00
committed by Sergei Golubchik
parent 4a3d51c76c
commit 2e73561c6c
4 changed files with 156 additions and 2 deletions

View File

@ -71,3 +71,19 @@ where d.dept_id = 10
and d.dept_id = e.dept_id;
drop table emp, dept;
#
# MDEV-16804 SYSTEM VERSIONING columns not showing as GENERATED
#
create table t1 (
a timestamp(6),
b timestamp(6) generated always as (a + interval 1 day),
c timestamp(6) generated always as (a + interval 1 month) stored,
d timestamp(6) generated always as row start,
e timestamp(6) generated always as row end,
period for system_time(d,e)
) with system versioning;
show columns from t1;
query_vertical select *,'---' from information_schema.columns where table_name='t1';
drop table t1;