MySQL 9.1.0
Source Code Documentation
|
#include "print_version.h"
#include "my_config.h"
#include <stdio.h>
#include <string.h>
#include <sstream>
#include "my_sys.h"
#include "mysql_com.h"
#include "mysql_version.h"
#include "nulls.h"
#include "strxmov.h"
Macros | |
#define | MYSQL_SERVER_SUFFIX_STR MYSQL_SERVER_SUFFIX_DEF |
Functions | |
void | print_version () |
This function prints a standard version string. More... | |
void | print_version_debug () |
This function prints a standard version string, with '-debug' added to the name of the executable. More... | |
void | print_explicit_version (const char *version) |
This function prints a version string with the released version supplied by the caller. More... | |
void | build_version (const std::string &progname, std::string *destination) |
This function builds a version string, with the program name supplied by the caller. More... | |
#define MYSQL_SERVER_SUFFIX_STR MYSQL_SERVER_SUFFIX_DEF |
void build_version | ( | const std::string & | progname, |
std::string * | destination | ||
) |
This function builds a version string, with the program name supplied by the caller.
Used by MEB and other utilities that want to present themselves under their own name.
[in] | progname | Program name C++ string. |
[out] | destination | Output buffer. |
void print_explicit_version | ( | const char * | version | ) |
This function prints a version string with the released version supplied by the caller.
Used by the server process which needs to print if it is compiled with debug, ASAN, UBSAN or running with Valgrind.
[in] | version | Null-terminated release version string |
void print_version | ( | ) |
This function prints a standard version string.
Should be used by all utilities.
void print_version_debug | ( | ) |
This function prints a standard version string, with '-debug' added to the name of the executable.
Used by utilities that have an explicit need to state that they have been compiled in debug mode.