![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In the windows build of the mysql command line client (mysql.exe, v 5.1.45), it appears as though the rehash function is disabled. I'd like to help the project by fixing this, if possible. Can anybody comment on the history behind this decision, and what they think needs to happen to get it working again? |
|
At a high level, it looks like the "readline" library needs to get working in the Windows build again. |
|
Here's what I know so far: On windows, HAVE_READLINE is intentionally not defined, which blocks access to build_completion_hash(): Line 91, MySQL.cc: #undef bcmp // Fix problem with new readline #if defined(__WIN__) #include <conio.h #elif !defined(__NETWARE__) #include <readline/readline.h #define HAVE_READLINE #endif Line 3883, MySQL.cc: static int com_rehash(String *buffer __attribute__((unused)), char *line __attribute__((unused))) { #ifdef HAVE_READLINE build_completion_hash(1, 0); #endif return 0; } Your thoughts and feedback are greatly appreciated. -Paul B. Davis -- MySQL Internals Mailing List For list archives: http://lists.mysql.com/internals To unsubscribe: http://lists.mysql.com/internals?uns...ysql (DOT) com |
![]() |
| Thread Tools | |
| Display Modes | |
| |