mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-29227 deprecate explicit_defaults_for_timestamp=0
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
set @@explicit_defaults_for_timestamp=0;
|
||||
Warnings:
|
||||
Warning 1681 'explicit_defaults_for_timestamp=0' is deprecated and will be removed in a future release
|
||||
CREATE TABLE t1 (a TIMESTAMP);
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
@@ -224,6 +226,8 @@ t1 CREATE TABLE `t1` (
|
||||
`a` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
set explicit_defaults_for_timestamp=1-@@explicit_defaults_for_timestamp;
|
||||
Warnings:
|
||||
Warning 1681 'explicit_defaults_for_timestamp=0' is deprecated and will be removed in a future release
|
||||
execute stmt;
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
|
@@ -233,6 +233,8 @@ t1 CREATE TABLE `t1` (
|
||||
`a` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
set explicit_defaults_for_timestamp=1-@@explicit_defaults_for_timestamp;
|
||||
Warnings:
|
||||
Warning 1681 'explicit_defaults_for_timestamp=0' is deprecated and will be removed in a future release
|
||||
execute stmt;
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
|
Reference in New Issue
Block a user