mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
BUG#2596 MySQL Client Segmentation Fault on Solaris 9
- Print readline or libedit version client/mysql.cc: Print the version of readline or libedit library used.
This commit is contained in:
@ -691,8 +691,16 @@ static void usage(int version)
|
|||||||
#ifdef __NETWARE__
|
#ifdef __NETWARE__
|
||||||
#define printf consoleprintf
|
#define printf consoleprintf
|
||||||
#endif
|
#endif
|
||||||
printf("%s Ver %s Distrib %s, for %s (%s)\n",
|
|
||||||
my_progname, VER, MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE);
|
#if defined(USE_LIBEDIT_INTERFACE)
|
||||||
|
const char* readline= "";
|
||||||
|
#else
|
||||||
|
const char* readline= "readline";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
printf("%s Ver %s Distrib %s, for %s (%s) using %s %s\n",
|
||||||
|
my_progname, VER, MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE,
|
||||||
|
readline, rl_library_version);
|
||||||
if (version)
|
if (version)
|
||||||
return;
|
return;
|
||||||
printf("\
|
printf("\
|
||||||
|
Reference in New Issue
Block a user