Commit b3f3b3ea authored by Sergei Golubchik's avatar Sergei Golubchik

fix versioning.simple for embedded

parent 7ad1e4a5
...@@ -86,120 +86,115 @@ b timestamp(6) YES NULL VIRTUAL GENERATED ...@@ -86,120 +86,115 @@ b timestamp(6) YES NULL VIRTUAL GENERATED
c timestamp(6) YES NULL STORED GENERATED c timestamp(6) YES NULL STORED GENERATED
d timestamp(6) NO NULL STORED GENERATED d timestamp(6) NO NULL STORED GENERATED
e timestamp(6) NO NULL STORED GENERATED e timestamp(6) NO NULL STORED GENERATED
select *,'---' from information_schema.columns where table_name='t1'; select table_catalog,table_schema,table_name,column_name,ordinal_position,column_default,is_nullable,data_type,character_maximum_length,character_octet_length,numeric_precision,numeric_scale,datetime_precision,character_set_name,collation_name,column_type,column_key,extra,column_comment,is_generated,generation_expression,'---' from information_schema.columns where table_name='t1';
TABLE_CATALOG def table_catalog def
TABLE_SCHEMA test table_schema test
TABLE_NAME t1 table_name t1
COLUMN_NAME a column_name a
ORDINAL_POSITION 1 ordinal_position 1
COLUMN_DEFAULT current_timestamp(6) column_default current_timestamp(6)
IS_NULLABLE NO is_nullable NO
DATA_TYPE timestamp data_type timestamp
CHARACTER_MAXIMUM_LENGTH NULL character_maximum_length NULL
CHARACTER_OCTET_LENGTH NULL character_octet_length NULL
NUMERIC_PRECISION NULL numeric_precision NULL
NUMERIC_SCALE NULL numeric_scale NULL
DATETIME_PRECISION 6 datetime_precision 6
CHARACTER_SET_NAME NULL character_set_name NULL
COLLATION_NAME NULL collation_name NULL
COLUMN_TYPE timestamp(6) column_type timestamp(6)
COLUMN_KEY column_key
EXTRA on update current_timestamp(6) extra on update current_timestamp(6)
PRIVILEGES select,insert,update,references column_comment
COLUMN_COMMENT is_generated NEVER
IS_GENERATED NEVER generation_expression NULL
GENERATION_EXPRESSION NULL
--- --- --- ---
TABLE_CATALOG def table_catalog def
TABLE_SCHEMA test table_schema test
TABLE_NAME t1 table_name t1
COLUMN_NAME b column_name b
ORDINAL_POSITION 2 ordinal_position 2
COLUMN_DEFAULT NULL column_default NULL
IS_NULLABLE YES is_nullable YES
DATA_TYPE timestamp data_type timestamp
CHARACTER_MAXIMUM_LENGTH NULL character_maximum_length NULL
CHARACTER_OCTET_LENGTH NULL character_octet_length NULL
NUMERIC_PRECISION NULL numeric_precision NULL
NUMERIC_SCALE NULL numeric_scale NULL
DATETIME_PRECISION 6 datetime_precision 6
CHARACTER_SET_NAME NULL character_set_name NULL
COLLATION_NAME NULL collation_name NULL
COLUMN_TYPE timestamp(6) column_type timestamp(6)
COLUMN_KEY column_key
EXTRA VIRTUAL GENERATED extra VIRTUAL GENERATED
PRIVILEGES select,insert,update,references column_comment
COLUMN_COMMENT is_generated ALWAYS
IS_GENERATED ALWAYS generation_expression `a` + interval 1 day
GENERATION_EXPRESSION `a` + interval 1 day
--- --- --- ---
TABLE_CATALOG def table_catalog def
TABLE_SCHEMA test table_schema test
TABLE_NAME t1 table_name t1
COLUMN_NAME c column_name c
ORDINAL_POSITION 3 ordinal_position 3
COLUMN_DEFAULT NULL column_default NULL
IS_NULLABLE YES is_nullable YES
DATA_TYPE timestamp data_type timestamp
CHARACTER_MAXIMUM_LENGTH NULL character_maximum_length NULL
CHARACTER_OCTET_LENGTH NULL character_octet_length NULL
NUMERIC_PRECISION NULL numeric_precision NULL
NUMERIC_SCALE NULL numeric_scale NULL
DATETIME_PRECISION 6 datetime_precision 6
CHARACTER_SET_NAME NULL character_set_name NULL
COLLATION_NAME NULL collation_name NULL
COLUMN_TYPE timestamp(6) column_type timestamp(6)
COLUMN_KEY column_key
EXTRA STORED GENERATED extra STORED GENERATED
PRIVILEGES select,insert,update,references column_comment
COLUMN_COMMENT is_generated ALWAYS
IS_GENERATED ALWAYS generation_expression `a` + interval 1 month
GENERATION_EXPRESSION `a` + interval 1 month
--- --- --- ---
TABLE_CATALOG def table_catalog def
TABLE_SCHEMA test table_schema test
TABLE_NAME t1 table_name t1
COLUMN_NAME d column_name d
ORDINAL_POSITION 4 ordinal_position 4
COLUMN_DEFAULT NULL column_default NULL
IS_NULLABLE NO is_nullable NO
DATA_TYPE timestamp data_type timestamp
CHARACTER_MAXIMUM_LENGTH NULL character_maximum_length NULL
CHARACTER_OCTET_LENGTH NULL character_octet_length NULL
NUMERIC_PRECISION NULL numeric_precision NULL
NUMERIC_SCALE NULL numeric_scale NULL
DATETIME_PRECISION 6 datetime_precision 6
CHARACTER_SET_NAME NULL character_set_name NULL
COLLATION_NAME NULL collation_name NULL
COLUMN_TYPE timestamp(6) column_type timestamp(6)
COLUMN_KEY column_key
EXTRA STORED GENERATED extra STORED GENERATED
PRIVILEGES select,insert,update,references column_comment
COLUMN_COMMENT is_generated ALWAYS
IS_GENERATED ALWAYS generation_expression ROW START
GENERATION_EXPRESSION ROW START
--- --- --- ---
TABLE_CATALOG def table_catalog def
TABLE_SCHEMA test table_schema test
TABLE_NAME t1 table_name t1
COLUMN_NAME e column_name e
ORDINAL_POSITION 5 ordinal_position 5
COLUMN_DEFAULT NULL column_default NULL
IS_NULLABLE NO is_nullable NO
DATA_TYPE timestamp data_type timestamp
CHARACTER_MAXIMUM_LENGTH NULL character_maximum_length NULL
CHARACTER_OCTET_LENGTH NULL character_octet_length NULL
NUMERIC_PRECISION NULL numeric_precision NULL
NUMERIC_SCALE NULL numeric_scale NULL
DATETIME_PRECISION 6 datetime_precision 6
CHARACTER_SET_NAME NULL character_set_name NULL
COLLATION_NAME NULL collation_name NULL
COLUMN_TYPE timestamp(6) column_type timestamp(6)
COLUMN_KEY column_key
EXTRA STORED GENERATED extra STORED GENERATED
PRIVILEGES select,insert,update,references column_comment
COLUMN_COMMENT is_generated ALWAYS
IS_GENERATED ALWAYS generation_expression ROW END
GENERATION_EXPRESSION ROW END
--- --- --- ---
drop table t1; drop table t1;
...@@ -84,6 +84,6 @@ create table t1 ( ...@@ -84,6 +84,6 @@ create table t1 (
period for system_time(d,e) period for system_time(d,e)
) with system versioning; ) with system versioning;
show columns from t1; show columns from t1;
query_vertical select *,'---' from information_schema.columns where table_name='t1'; query_vertical select table_catalog,table_schema,table_name,column_name,ordinal_position,column_default,is_nullable,data_type,character_maximum_length,character_octet_length,numeric_precision,numeric_scale,datetime_precision,character_set_name,collation_name,column_type,column_key,extra,column_comment,is_generated,generation_expression,'---' from information_schema.columns where table_name='t1';
drop table t1; drop table t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment