~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzle.cc

merge with the latest code from the trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
  default_charset_used= 0, opt_secure_auth= 0,
159
159
  default_pager_set= 0, opt_sigint_ignore= 0,
160
160
  auto_vertical_output= 0,
161
 
  show_warnings= 0, executing_query= 0, interrupted_query= 0;
 
161
  show_warnings= 0, executing_query= 0, interrupted_query= 0,
 
162
  show_progress= 0;
162
163
static bool debug_info_flag, debug_check_flag;
163
164
static bool column_types_flag;
164
165
static bool preserve_comments= 0;
1440
1441
  {"show-warnings", OPT_SHOW_WARNINGS, N_("Show warnings after every statement."),
1441
1442
   (char**) &show_warnings, (char**) &show_warnings, 0, GET_BOOL, NO_ARG,
1442
1443
   0, 0, 0, 0, 0, 0},
 
1444
  {"show-progress", OPT_SHOW_PROGRESS, N_("Show progress during an import."),
 
1445
   (char**) &show_progress, (char**) &show_progress, 0, GET_BOOL, NO_ARG,
 
1446
   0, 0, 0, 0, 0, 0},
1443
1447
  { 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
1444
1448
};
1445
1449
 
1693
1697
          (unsigned char) line[2] == 0xBF)
1694
1698
        line+= 3;
1695
1699
      line_number++;
 
1700
      if (show_progress)
 
1701
      {
 
1702
        if ((line_number & 1000) == 0)
 
1703
          fprintf(stderr, _("Processing line: %"PRIu32"\n"), line_number);
 
1704
      }
1696
1705
      if (!glob_buffer->empty())
1697
1706
        status.query_start_line=line_number;
1698
1707
    }