mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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__
|
||||
#define printf consoleprintf
|
||||
#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)
|
||||
return;
|
||||
printf("\
|
||||
|
Reference in New Issue
Block a user