mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-28632 Change default of explicit_defaults_for_timestamp to ON
This commit is contained in:
committed by
Oleksandr Byelkin
parent
c38b8f49b8
commit
45e0373a78
@ -1055,9 +1055,9 @@ SET sql_mode = NO_ZERO_DATE;
|
||||
--error ER_INVALID_DEFAULT
|
||||
CREATE TABLE t2(c1 TIMESTAMP, c2 TIMESTAMP DEFAULT 0);
|
||||
|
||||
--echo
|
||||
--error ER_INVALID_DEFAULT
|
||||
CREATE TABLE t2(c1 TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, c2 TIMESTAMP NOT NULL);
|
||||
#--echo
|
||||
#--error ER_INVALID_DEFAULT
|
||||
#CREATE TABLE t2(c1 TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, c2 TIMESTAMP NOT NULL);
|
||||
|
||||
--echo
|
||||
--echo # -- Check that NULL column still can be created.
|
||||
|
Reference in New Issue
Block a user