~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump.cc

  • Committer: Brian Aker
  • Date: 2009-12-05 01:48:28 UTC
  • mfrom: (1237.2.12 push)
  • Revision ID: brian@gaz-20091205014828-xd4e29ujttx2xe2j
MergeĀ forĀ staging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
static bool opt_replace_into= false;
113
113
static bool opt_routines= false;
114
114
static bool opt_alltspcs= false;
115
 
static bool debug_info_flag= false;
116
 
static bool debug_check_flag= false;
117
115
static uint32_t show_progress_size= 0;
118
116
static uint64_t total_rows= 0;
119
117
static drizzle_st drizzle;
136
134
static char compatible_mode_normal_str[255];
137
135
static uint32_t opt_compatible_mode= 0;
138
136
static uint32_t opt_drizzle_port= 0;
139
 
static uint32_t my_end_arg;
140
137
static int first_error= 0;
141
138
static string extended_row;
142
139
FILE *md_result_file= 0;
203
200
   "To dump several databases. Note the difference in usage; In this case no tables are given. All name arguments are regarded as databasenames. 'USE db_name;' will be included in the output.",
204
201
   (char**) &opt_databases, (char**) &opt_databases, 0, GET_BOOL, NO_ARG, 0, 0,
205
202
   0, 0, 0, 0},
206
 
  {"debug-check", OPT_DEBUG_CHECK, "Check memory and open file usage at exit.",
207
 
   (char**) &debug_check_flag, (char**) &debug_check_flag, 0,
208
 
   GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
209
 
  {"debug-info", OPT_DEBUG_INFO, "Print some debug info at exit.",
210
 
   (char**) &debug_info_flag, (char**) &debug_info_flag,
211
 
   0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
212
203
  {"delayed-insert", OPT_DELAYED, "Insert rows with INSERT DELAYED; ",
213
204
   (char**) &opt_delayed, (char**) &opt_delayed, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0,
214
205
   0, 0},
685
676
  if ((ho_error= handle_options(argc, argv, my_long_options, get_one_option)))
686
677
    return(ho_error);
687
678
 
688
 
  if (debug_info_flag)
689
 
    my_end_arg= MY_CHECK_ERROR | MY_GIVE_INFO;
690
 
  if (debug_check_flag)
691
 
    my_end_arg= MY_CHECK_ERROR;
692
 
 
693
679
  if (!path && (enclosed || opt_enclosed || escaped || lines_terminated ||
694
680
                fields_terminated))
695
681
  {
897
883
  free(opt_password);
898
884
  if (defaults_argv)
899
885
    free_defaults(defaults_argv);
900
 
  my_end(my_end_arg);
 
886
  my_end();
901
887
}
902
888
 
903
889