1
0
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:
Sergei Golubchik
2022-06-12 22:01:56 +02:00
committed by Oleksandr Byelkin
parent c38b8f49b8
commit 45e0373a78
125 changed files with 887 additions and 898 deletions

View File

@ -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.