diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-12-11 00:11:43 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2023-01-19 12:39:28 +0100 |
commit | eb26bf6e09f714bfeda8e411b411b4991edf1c4d (patch) | |
tree | 0962cb1e582513a7c044a424c3b8885a2c9e1f03 /include | |
parent | 314e50b464e31a45c791ea47661efdadf924cfc5 (diff) | |
download | mariadb-git-eb26bf6e09f714bfeda8e411b411b4991edf1c4d.tar.gz |
unify client/tool version string
it should now always be
/path/to/exe Ver <tool version> Distrib <server version> for <OS> (<ARCH>)
in all tools and clients
Diffstat (limited to 'include')
-rw-r--r-- | include/welcome_copyright_notice.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/welcome_copyright_notice.h b/include/welcome_copyright_notice.h index 22d8d204268..7993cd1dc3a 100644 --- a/include/welcome_copyright_notice.h +++ b/include/welcome_copyright_notice.h @@ -27,4 +27,12 @@ "Copyright (c) " first_year ", " COPYRIGHT_NOTICE_CURRENT_YEAR \ ", Oracle, MariaDB Corporation Ab and others.\n" +#ifdef VER +static inline void print_version() +{ + /* NOTE mysql.cc is not using this function! */ + printf("%s Ver %s Distrib %s for %s (%s)\n", + my_progname, VER, MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE); +} +#endif #endif /* _welcome_copyright_notice_h_ */ |