summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorgeert@kriem.kemuri.org <>2005-04-29 14:46:53 +0200
committergeert@kriem.kemuri.org <>2005-04-29 14:46:53 +0200
commit0dab212f5c1dcf6d829751765ae9d5dcdb5346d5 (patch)
tree17e0d7dc5d8359528d97e5a697fdbe661e1ecf58 /client
parent166af6644095ea12f7557255634b8b99cade546e (diff)
parenta2487746824134dc8c0815f84c1e6fcc4eaf3c98 (diff)
downloadmariadb-git-0dab212f5c1dcf6d829751765ae9d5dcdb5346d5.tar.gz
Merge gvanderkelen@bk-internal.mysql.com:/home/bk/mysql-5.0
into kriem.kemuri.org:/home/geert/MySQL/mysql-5.0
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 5e87a6d420a..c3a5da430ac 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -713,8 +713,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("\
@@ -1333,7 +1341,7 @@ static void initialize_readline (char *name)
setlocale(LC_ALL,""); /* so as libedit use isprint */
#endif
rl_attempted_completion_function= (CPPFunction*)&new_mysql_completion;
- rl_completion_entry_function= (CPFunction*)&no_completion;
+ rl_completion_entry_function= (Function*)&no_completion;
#else
rl_attempted_completion_function= (CPPFunction*)&new_mysql_completion;
rl_completion_entry_function= (Function*)&no_completion;