~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump.cc

  • Committer: Mark Atwood
  • Date: 2008-12-29 21:49:54 UTC
  • mto: (754.1.4 devel)
  • mto: This revision was merged to the branch mainline in revision 755.
  • Revision ID: me@mark.atwood.name-20081229214954-0m9xrjsceg5tr3s6
integrate errmsg plugin into sql_print_* functions

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
             *lines_terminated=0, *enclosed=0, *opt_enclosed=0, *escaped=0,
97
97
             *where=0, *order_by=0,
98
98
             *opt_compatible_mode_str= 0,
99
 
             *err_ptr= 0,
100
 
             *log_error_file= NULL;
 
99
             *err_ptr= 0;
101
100
static char **defaults_argv= 0;
102
101
static char compatible_mode_normal_str[255];
103
102
/* Server supports character_set_results session variable? */
313
312
   0, 0, 0, 0, 0, 0},
314
313
  {"lock-tables", 'l', "Lock all tables for read.", (char**) &lock_tables,
315
314
   (char**) &lock_tables, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
316
 
  {"log-error", OPT_ERROR_LOG_FILE, "Append warnings and errors to given file.",
317
 
   (char**) &log_error_file, (char**) &log_error_file, 0, GET_STR,
318
 
   REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
319
315
  {"master-data", OPT_MASTER_DATA,
320
316
   "This causes the binary log position and filename to be appended to the "
321
317
   "output. If equal to 1, will print it as a CHANGE MASTER command; if equal"
3280
3276
    exit(exit_code);
3281
3277
  }
3282
3278
 
3283
 
  if (log_error_file)
3284
 
  {
3285
 
    if(!(stderror_file= freopen(log_error_file, "a+", stderr)))
3286
 
    {
3287
 
      free_resources();
3288
 
      exit(EX_DRIZZLEERR);
3289
 
    }
3290
 
  }
3291
 
 
3292
3279
  if (connect_to_db(current_host, current_user, opt_password))
3293
3280
  {
3294
3281
    free_resources();