mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-3929 Add system variable explicit_defaults_for_timestamp for compatibility with MySQL
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
set time_zone='+03:00';
|
||||
set timestamp=unix_timestamp('2011-01-01 01:01:01') + 0.123456;
|
||||
|
||||
create table t1 (a timestamp(4), b varchar(100), c datetime(2));
|
||||
create table t1 (a timestamp(4) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, b varchar(100), c datetime(2));
|
||||
|
||||
insert t1 (b,c) values (now(6), now(6));
|
||||
|
||||
|
Reference in New Issue
Block a user