~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/mysqladmin.cc

  • Committer: brian
  • Date: 2008-06-29 12:18:49 UTC
  • Revision ID: brian@localhost.localdomain-20080629121849-2le5txjj7tkdq54f
Fix for stat, NETWARE removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
 
128
128
static struct my_option my_long_options[] =
129
129
{
130
 
#ifdef __NETWARE__
131
 
  {"autoclose", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
132
 
   0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
133
 
#endif
134
130
  {"count", 'c',
135
131
   "Number of iterations to make. This works with -i (--sleep) only.",
136
132
   (uchar**) &nr_iterations, (uchar**) &nr_iterations, 0, GET_UINT,
167
163
  {"password", 'p',
168
164
   "Password to use when connecting to server. If password is not given it's asked from the tty.",
169
165
   0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
170
 
#ifdef __WIN__
171
 
  {"pipe", 'W', "Use named pipes to connect to server.", 0, 0, 0, GET_NO_ARG,
172
 
   NO_ARG, 0, 0, 0, 0, 0, 0},
173
 
#endif
174
166
  {"port", 'P', "Port number to use for connection or 0 for default to, in "
175
167
   "order of preference, my.cnf, $MYSQL_TCP_PORT, "
176
168
#if MYSQL_PORT_DEFAULT == 0
242
234
  int error = 0;
243
235
 
244
236
  switch(optid) {
245
 
#ifdef __NETWARE__
246
 
  case OPT_AUTO_CLOSE:
247
 
    setscreenmode(SCR_AUTOCLOSE_ON_EXIT);
248
 
    break;
249
 
#endif
250
237
  case 'c':
251
238
    opt_count_iterations= 1;
252
239
    break;
267
254
  case 's':
268
255
    option_silent++;
269
256
    break;
270
 
  case 'W':
271
 
#ifdef __WIN__
272
 
    opt_protocol = MYSQL_PROTOCOL_PIPE;
273
 
#endif
274
 
    break;
275
257
  case '#':
276
258
    DBUG_PUSH(argument ? argument : "d:t:o,/tmp/mysqladmin.trace");
277
259
    break;
854
836
        char *pw= argv[1];
855
837
        bool old= (find_type(argv[0], &command_typelib, 2) ==
856
838
                   ADMIN_OLD_PASSWORD);
857
 
#ifdef __WIN__
858
 
        uint pw_len= strlen(pw);
859
 
        if (pw_len > 1 && pw[0] == '\'' && pw[pw_len-1] == '\'')
860
 
          printf("Warning: single quotes were not trimmed from the password by"
861
 
                 " your command\nline client, as you might have expected.\n");
862
 
#endif
863
839
        /*
864
840
           If we don't already know to use an old-style password, see what
865
841
           the server is using
1012
988
{
1013
989
  printf("%s  Ver %s Distrib %s, for %s on %s\n",my_progname,ADMIN_VERSION,
1014
990
         MYSQL_SERVER_VERSION,SYSTEM_TYPE,MACHINE_TYPE);
1015
 
  NETWARE_SET_SCREEN_MODE(1);
1016
991
}
1017
992
 
1018
993