~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzlecheck.cc

  • Committer: Monty Taylor
  • Date: 2008-09-13 20:24:20 UTC
  • mfrom: (383.1.35 drizzle)
  • Revision ID: monty@inaugust.com-20080913202420-lkj76ewbabl8ljvp
MergedĀ fromĀ trunk.

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
 
582
582
static int use_db(char *database)
583
583
{
584
584
  if (drizzle_get_server_version(sock) >= 50003 &&
585
 
      !my_strcasecmp(&my_charset_latin1, database, "information_schema"))
 
585
      !my_strcasecmp(&my_charset_utf8_general_ci, database, "information_schema"))
586
586
    return 1;
587
587
  if (drizzle_select_db(sock, database))
588
588
  {