mariadb/client
Christian Gonzalez 4186fa72fb MDEV-28671 Enable var deprecation for mysqld help output
Currently there are mechanism to mark a system variable as
deprecated, but they are only used to print warning messages
when a deprecated variable is set.

Leverage the existing mechanisms in order to make the
deprecation information available at the --help output of mysqld by:

* Moving the deprecation information (i.e `deprecation_substitute`
  attribute) from the `sys_var` class into the `my_option` struct.
  As every `sys_var` contains its own `my_option` struct, the access
  to the deprecation information remains available to `sys_var`
  objects. `my_getotp` functions, which works directly with
  `my_option` structs, gain access to this information while building
  the --help output.

* For plugin variables, leverages the `PLUGIN_VAR_DEPRECATED` flag
  and set the `deprecation_substitute` attribute  accordingly when
  building the `my_option` objects.

* Change the `option_cmp` function to use the `deprecation_substitute`
  attribute instead of the name when sorting the options. This way
  deprecated options and the substitutes will be grouped together.

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer
Amazon Web Services, Inc.
2024-05-27 12:39:02 +02:00
..
async_example.c MDEV-25602 get rid of __WIN__ in favor of standard _WIN32 2021-06-06 13:21:03 +02:00
client_metadata.h MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRY 2020-03-10 20:43:32 +04:00
client_priv.h Merge branch '11.2' into 11.4 2024-05-21 19:38:51 +02:00
CMakeLists.txt Merge branch '11.2' into 11.4 2024-05-21 19:38:51 +02:00
completion_hash.cc Merge 10.4 into 10.5 2020-11-03 16:24:47 +02:00
completion_hash.h Update FSF Address 2019-05-11 21:29:06 +03:00
connection_pool.cc MDEV-32216 Connection pool with asynchronous query execution. 2024-01-29 11:54:37 +01:00
connection_pool.h MDEV-32216 Connection pool with asynchronous query execution. 2024-01-29 11:54:37 +01:00
echo.c Fix typos in the codebase. 2022-08-09 18:41:09 +03:00
mariadb-conv.cc unify client/tool version string 2023-01-19 12:39:28 +01:00
my_readline.h Update FSF Address 2019-05-11 21:29:06 +03:00
mysql.cc MDEV-28671 Enable var deprecation for mysqld help output 2024-05-27 12:39:02 +02:00
mysql_plugin.c Merge 10.11 into 11.0 2023-04-17 16:50:01 +03:00
mysql_upgrade.c Merge branch '11.0' into 11.1 2024-05-13 09:52:30 +02:00
mysqladmin.cc Merge branch '11.2' into 11.4 2024-05-21 19:38:51 +02:00
mysqlbinlog.cc Merge branch '11.2' into 11.4 2024-05-21 19:38:51 +02:00
mysqlcheck.c Merge branch '11.4' into 11.5 2024-05-23 17:01:43 +02:00
mysqldump.cc MDEV-28671 Enable var deprecation for mysqld help output 2024-05-27 12:39:02 +02:00
mysqlimport.c Merge branch '11.2' into 11.4 2024-05-21 19:38:51 +02:00
mysqlshow.c Merge branch '11.4' into 11.5 2024-05-23 17:01:43 +02:00
mysqlslap.c Merge branch '11.2' into 11.4 2024-05-21 19:38:51 +02:00
mysqltest.cc Merge branch '11.4' into 11.5 2024-05-23 17:01:43 +02:00
readline.cc MDEV-27142 disable text mode for Windows stdio by default 2022-07-18 13:18:03 +02:00