~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump.cc

  • Committer: Brian Aker
  • Date: 2010-01-19 01:39:22 UTC
  • mfrom: (971.8.6 eday-dev)
  • Revision ID: brian@gaz-20100119013922-dxgxovlhv8y7zpfs
MergeĀ Eric

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
static bool  verbose= false;
82
82
static bool opt_no_create_info= false;
83
83
static bool opt_no_data= false;
 
84
static bool opt_mysql= false;
84
85
static bool quick= true;
85
86
static bool extended_insert= true;
86
87
static bool ignore_errors= false;
257
258
   "dump. Automatically turns --single-transaction and --lock-tables off.",
258
259
   (char**) &opt_lock_all_tables, (char**) &opt_lock_all_tables, 0, GET_BOOL, NO_ARG,
259
260
   0, 0, 0, 0, 0, 0},
 
261
  {"mysql", 'm', N_("Use MySQL Protocol."),
 
262
   (char**) &opt_mysql, (char**) &opt_mysql, 0, GET_BOOL, NO_ARG, 0, 0, 0,
 
263
   0, 0, 0},
260
264
  {"no-autocommit", OPT_AUTOCOMMIT,
261
265
   "Wrap tables with autocommit/commit statements.",
262
266
   (char**) &opt_autocommit, (char**) &opt_autocommit, 0, GET_BOOL, NO_ARG,
913
917
  drizzle_con_create(&drizzle, &dcon);
914
918
  drizzle_con_set_tcp(&dcon, host, opt_drizzle_port);
915
919
  drizzle_con_set_auth(&dcon, user, passwd);
 
920
  if (opt_mysql)
 
921
    drizzle_con_add_options(&dcon, DRIZZLE_CON_MYSQL);
916
922
  ret= drizzle_con_connect(&dcon);
917
923
  if (ret != DRIZZLE_RETURN_OK)
918
924
  {