1
0
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:
Sergei Golubchik
2023-09-10 20:10:53 +02:00
parent ceb1bd19ad
commit df4bfefbb8
114 changed files with 439 additions and 521 deletions

View File

@@ -11,7 +11,7 @@ connection slave;
set @sav.explicit_defaults_for_timestamp = @@global.explicit_defaults_for_timestamp;
set global explicit_defaults_for_timestamp = 0;
Warnings:
Warning 1681 'explicit_defaults_for_timestamp=0' is deprecated and will be removed in a future release
Warning 1287 'explicit_defaults_for_timestamp=0' is deprecated and will be removed in a future release
set @sav.slave_parallel_workers = @@global.slave_parallel_workers;
include/stop_slave.inc
set @@global.slave_parallel_workers = 1;
@@ -108,7 +108,7 @@ connection slave;
connection master;
set @@session.explicit_defaults_for_timestamp = 0;
Warnings:
Warning 1681 'explicit_defaults_for_timestamp=0' is deprecated and will be removed in a future release
Warning 1287 'explicit_defaults_for_timestamp=0' is deprecated and will be removed in a future release
connection slave;
set @@global.explicit_defaults_for_timestamp = 1;
connection slave;