Commit f65f2799 authored by unknown's avatar unknown

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.
parent c8ad2e03
...@@ -691,8 +691,16 @@ static void usage(int version) ...@@ -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("\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment