~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump.cc

  • Committer: Brian Aker
  • Date: 2010-03-26 15:45:24 UTC
  • Revision ID: brian@gir.local-20100326154524-lw7f94kt5glgm0rj
Correct output, preserve indention. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
470
470
 
471
471
    if (path == NULL)
472
472
    {
473
 
      fprintf(md_result_file,"\
474
 
              SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;\n\
475
 
              SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;\n\
476
 
              ");
 
473
      fprintf(md_result_file,"SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;\nSET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;\n");
477
474
    }
478
475
    check_io(sql_file);
479
476
  }
491
488
  {
492
489
    if (path == NULL)
493
490
    {
494
 
      fprintf(md_result_file,"\
495
 
              SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;\n\
496
 
              SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;\n");
 
491
      fprintf(md_result_file,"SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;\nSET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;\n");
497
492
    }
498
493
    if (opt_set_charset)
499
494
      fprintf(sql_file, "SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION;\n");