mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
compile-time deprecation reminders
remove old deprecation helpers that were not used anywhere. create new deprecation helpers and enforce their usage this also removes inconsistencies in reporting deprecation: sometimes it was ER_WARN_DEPRECATED_SYNTAX (1287), sometimes ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT (1681), sometimes a warning, sometimes a note. it should always be * ER_WARN_DEPRECATED_SYNTAX * a warning (because it's something actionable, not purely informational)
This commit is contained in:
@@ -54,7 +54,7 @@ f108 enum("1enum","2enum") not null default "1enum",
|
||||
f109 set("1set","2set") not null default "1set"
|
||||
) engine = innodb;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
Warning 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/innodb_tb2.txt'
|
||||
into table tb2;
|
||||
DROP DATABASE IF EXISTS test1;
|
||||
@@ -115,7 +115,7 @@ f108 enum("1enum","2enum") not null default "1enum",
|
||||
f109 set("1set","2set") not null default "1set"
|
||||
) engine = innodb;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
Warning 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/innodb_tb2.txt'
|
||||
into table tb2;
|
||||
USE test;
|
||||
|
Reference in New Issue
Block a user