~jaypipes/drizzle/proto-definitions

« back to all changes in this revision

Viewing changes to client/drizzlecheck.cc

  • Committer: Jay Pipes
  • Date: 2008-09-25 18:13:26 UTC
  • mfrom: (352.5.30 codestyle)
  • Revision ID: jay@mysql.com-20080925181326-2z7pr377hcvf28qt
Merged in trunk and added additional definition wrappers for proto buffer messages

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
static int first_error = 0;
48
48
vector<string> tables4repair;
49
49
static uint opt_protocol=0;
50
 
static const CHARSET_INFO *charset_info= &my_charset_latin1;
 
50
static const CHARSET_INFO *charset_info= &my_charset_utf8_general_ci;
51
51
 
52
52
enum operations { DO_CHECK, DO_REPAIR, DO_ANALYZE, DO_OPTIMIZE, DO_UPGRADE };
53
53
 
282
282
    break;
283
283
  case 'V': print_version(); exit(0);
284
284
  case OPT_DRIZZLE_PROTOCOL:
285
 
    opt_protocol= find_type_or_exit(argument, &sql_protocol_typelib,
286
 
                                    opt->name);
287
285
    break;
288
286
  }
289
287
  return 0;
582
580
static int use_db(char *database)
583
581
{
584
582
  if (drizzle_get_server_version(sock) >= 50003 &&
585
 
      !my_strcasecmp(&my_charset_latin1, database, "information_schema"))
 
583
      !my_strcasecmp(&my_charset_utf8_general_ci, database, "information_schema"))
586
584
    return 1;
587
585
  if (drizzle_select_db(sock, database))
588
586
  {