~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/mysqlcheck.c

  • Committer: Brian Aker
  • Date: 2008-07-13 16:48:26 UTC
  • mfrom: (142.1.2 drizzle)
  • Revision ID: brian@tangent.org-20080713164826-ec8gxxdx7wq8yt91
Merging in Patrick's work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
   "To check several databases. Note the difference in usage; In this case no tables are given. All name arguments are regarded as databasenames.",
86
86
   (char**) &opt_databases, (char**) &opt_databases, 0, GET_BOOL, NO_ARG,
87
87
   0, 0, 0, 0, 0, 0},
88
 
#ifdef DBUG_OFF
89
 
  {"debug", '#', "This is a non-debug version. Catch this and exit.",
90
 
   0, 0, 0, GET_DISABLED, OPT_ARG, 0, 0, 0, 0, 0, 0},
91
 
#else
92
 
  {"debug", '#', "Output debug log. Often this is 'd:t:o,filename'.",
93
 
   0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
94
 
#endif
95
88
  {"debug-check", OPT_DEBUG_CHECK, "Check memory and open file usage at exit.",
96
89
   (char**) &debug_check_flag, (char**) &debug_check_flag, 0,
97
90
   GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
294
287
    what_to_do= DO_CHECK;
295
288
    opt_upgrade= 1;
296
289
    break;
297
 
  case '#':
298
 
    DBUG_PUSH(argument ? argument : "d:t:o");
299
 
    debug_check_flag= 1;
300
 
    break;
301
290
  case OPT_TABLES:
302
291
    opt_databases = 0;
303
292
    break;
732
721
 
733
722
static int dbConnect(char *host, char *user, char *passwd)
734
723
{
735
 
  DBUG_ENTER("dbConnect");
 
724
 
736
725
  if (verbose)
737
726
  {
738
727
    fprintf(stderr, "# Connecting to %s...\n", host ? host : "localhost");
767
756
 
768
757
static void DBerror(MYSQL *mysql, const char *when)
769
758
{
770
 
  DBUG_ENTER("DBerror");
771
759
  my_printf_error(0,"Got error: %d: %s %s", MYF(0),
772
760
                  mysql_errno(mysql), mysql_error(mysql), when);
773
761
  safe_exit(EX_MYSQLERR);
774
 
  DBUG_VOID_RETURN;
 
762
  return;
775
763
} /* DBerror */
776
764
 
777
765