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

Parser: no implicit NOT NULL for system fields [fixes #163]

This commit is contained in:
Aleksey Midenkov
2017-03-24 14:53:20 +03:00
parent 14f007f907
commit 7a525e7e93
5 changed files with 27 additions and 7 deletions

View File

@ -9,8 +9,8 @@ show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`XNo` int(10) unsigned DEFAULT NULL,
`Sys_start` timestamp(6) NOT NULL GENERATED ALWAYS AS ROW START,
`Sys_end` timestamp(6) NOT NULL GENERATED ALWAYS AS ROW END,
`Sys_start` timestamp(6) GENERATED ALWAYS AS ROW START,
`Sys_end` timestamp(6) GENERATED ALWAYS AS ROW END,
PERIOD FOR SYSTEM_TIME (`Sys_start`, `Sys_end`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
# Implicit fields test