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
@ -1907,7 +1907,7 @@ DROP TABLE t1,t2;
|
||||
--echo # MDEV-21278 Assertion `is_unsigned() == attr.unsigned_flag' or Assertion `field.is_sane()' failed
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (a TIMESTAMP);
|
||||
CREATE TABLE t1 (a TIMESTAMP NOT NULL DEFAULT NOW());
|
||||
INSERT INTO t1 VALUES (NULL),(NULL);
|
||||
SET SESSION SQL_MODE= 'NO_UNSIGNED_SUBTRACTION';
|
||||
--replace_column 1 xxx
|
||||
@ -1917,7 +1917,7 @@ SHOW CREATE TABLE t2;
|
||||
DROP TABLE t2, t1;
|
||||
SET sql_mode=DEFAULT;
|
||||
|
||||
CREATE TABLE t1 (a TIMESTAMP);
|
||||
CREATE TABLE t1 (a TIMESTAMP NOT NULL DEFAULT NOW());
|
||||
INSERT INTO t1 VALUES (NULL),(NULL);
|
||||
SET SESSION SQL_MODE= 'NO_UNSIGNED_SUBTRACTION';
|
||||
--replace_column 1 xxx
|
||||
|
Reference in New Issue
Block a user