30
30
*
31
31
**/
32
32
33
- #include " client_priv.h"
34
- #include " my_default.h"
35
33
#include < m_ctype.h>
36
- #include < stdarg.h>
37
34
#include < mf_wcomp.h> // wild_prefix, wild_one, wild_any
38
35
#include < my_dir.h>
39
- #include " my_readline.h"
40
36
#include < signal.h>
37
+ #include < stdarg.h>
41
38
#include < violite.h>
42
- #include " prealloced_array.h"
39
+
40
+ #include " client_priv.h"
41
+ #include " my_default.h"
42
+ #include " my_loglevel.h"
43
+ #include " my_readline.h"
43
44
#include " mysql/service_my_snprintf.h"
45
+ #include " prealloced_array.h"
44
46
45
47
#ifdef HAVE_SYS_IOCTL_H
46
48
#include < sys/ioctl.h>
61
63
62
64
#if defined(_WIN32)
63
65
#include < conio.h>
66
+
64
67
// Not using syslog but EventLog on Win32, so a dummy facility is enough.
65
68
#define LOG_USER 0
66
69
#else
67
- #include < syslog.h>
68
70
#include < readline.h>
71
+ #include < syslog.h>
72
+
69
73
#define HAVE_READLINE
70
74
#define USE_POPEN
71
75
#endif
72
76
73
- #include < algorithm>
74
- #include < sql_common.h>
75
77
#include < mysqld_error.h>
78
+ #include < sql_common.h>
79
+ #include < algorithm>
76
80
77
81
using std::min;
78
82
using std::max;
@@ -99,9 +103,10 @@ static char *server_version= NULL;
99
103
#define cmp_database (cs,A,B ) strcmp((A),(B))
100
104
#endif
101
105
102
- #include " completion_hash.h"
103
106
#include < welcome_copyright_notice.h> // ORACLE_WELCOME_COPYRIGHT_NOTICE
104
107
108
+ #include " completion_hash.h"
109
+
105
110
#define PROMPT_CHAR ' \\ '
106
111
#define DEFAULT_DELIMITER " ;"
107
112
@@ -1808,6 +1813,7 @@ static struct my_option my_long_options[] =
1808
1813
&opt_mysql_unix_port, &opt_mysql_unix_port, 0 , GET_STR_ALLOC,
1809
1814
REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
1810
1815
#include " sslopt-longopts.h"
1816
+
1811
1817
{" table" , ' t' , " Output in table format." , &output_tables,
1812
1818
&output_tables, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
1813
1819
{" tee" , OPT_TEE,
@@ -2114,6 +2120,7 @@ get_one_option(int optid, const struct my_option *opt MY_ATTRIBUTE((unused)),
2114
2120
#endif
2115
2121
break ;
2116
2122
#include < sslopt-case.h>
2123
+
2117
2124
case ' V' :
2118
2125
usage (1 );
2119
2126
exit (0 );
0 commit comments