diff options
author | msvensson@neptunus.(none) <> | 2005-04-25 12:05:13 +0200 |
---|---|---|
committer | msvensson@neptunus.(none) <> | 2005-04-25 12:05:13 +0200 |
commit | e0edc9a63014278193652b30eb30ddc1b2b07d66 (patch) | |
tree | 5267df8313fec6841c69b6edda2548a893e67e8d /client | |
parent | 06d29ea2b7e97a690ab7b187a933edcb782ece8c (diff) | |
download | mariadb-git-e0edc9a63014278193652b30eb30ddc1b2b07d66.tar.gz |
BUG#2596 MySQL Client Segmentation Fault on Solaris 9
- Print readline or libedit version
Diffstat (limited to 'client')
-rw-r--r-- | client/mysql.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index 49efe9cbcf2..f27db0de8d8 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -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("\ |