|
create table t (a int, s timestamp(6) as row start, e timestamp(6) as row end, period for system_time (s,e)) with system versioning;
|
insert into t (a) values (1);
|
|
--error ER_WARNING_NON_DEFAULT_VALUE_FOR_GENERATED_COLUMN
|
insert into t values (2,now(),from_unixtime(2147483647.999999));
|
--error ER_WARNING_NON_DEFAULT_VALUE_FOR_GENERATED_COLUMN
|
insert into t (a,s,e) values (2,now(),from_unixtime(2147483647.999999));
|
--error ER_WARNING_NON_DEFAULT_VALUE_FOR_GENERATED_COLUMN
|
insert into t (a,s,e) select a,s,e from t;
|
|
insert into t select * from t;
|
|
# Cleanup
|
drop table t;
|
In the test case above, INSERT VALUES produces the error/warning regardless whether a list of column is provided; INSERT .. (column list) SELECT ... also produces it; but INSERT .. SELECT without the column list does not. For a table with usual virtual columns it does.
|