~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzlecheck.cc

  • Committer: Brian Aker
  • Date: 2008-09-28 03:20:53 UTC
  • mto: This revision was merged to the branch mainline in revision 413.
  • Revision ID: brian@tangent.org-20080928032053-rclc4iiwmwedsf73
Work on removing GNU specific calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
602
602
  switch (what_to_do) {
603
603
  case DO_CHECK:
604
604
    op = "CHECK";
605
 
    if (opt_quick)              end = stpcpy(end, " QUICK");
606
 
    if (opt_fast)               end = stpcpy(end, " FAST");
607
 
    if (opt_medium_check)       end = stpcpy(end, " MEDIUM"); /* Default */
608
 
    if (opt_extended)           end = stpcpy(end, " EXTENDED");
609
 
    if (opt_check_only_changed) end = stpcpy(end, " CHANGED");
610
 
    if (opt_upgrade)            end = stpcpy(end, " FOR UPGRADE");
 
605
    if (opt_quick)              end = my_stpcpy(end, " QUICK");
 
606
    if (opt_fast)               end = my_stpcpy(end, " FAST");
 
607
    if (opt_medium_check)       end = my_stpcpy(end, " MEDIUM"); /* Default */
 
608
    if (opt_extended)           end = my_stpcpy(end, " EXTENDED");
 
609
    if (opt_check_only_changed) end = my_stpcpy(end, " CHANGED");
 
610
    if (opt_upgrade)            end = my_stpcpy(end, " FOR UPGRADE");
611
611
    break;
612
612
  case DO_REPAIR:
613
613
    op= (opt_write_binlog) ? "REPAIR" : "REPAIR NO_WRITE_TO_BINLOG";
614
 
    if (opt_quick)              end = stpcpy(end, " QUICK");
615
 
    if (opt_extended)           end = stpcpy(end, " EXTENDED");
616
 
    if (opt_frm)                end = stpcpy(end, " USE_FRM");
 
614
    if (opt_quick)              end = my_stpcpy(end, " QUICK");
 
615
    if (opt_extended)           end = my_stpcpy(end, " EXTENDED");
 
616
    if (opt_frm)                end = my_stpcpy(end, " USE_FRM");
617
617
    break;
618
618
  case DO_ANALYZE:
619
619
    op= (opt_write_binlog) ? "ANALYZE" : "ANALYZE NO_WRITE_TO_BINLOG";
636
636
  {
637
637
    char *ptr;
638
638
 
639
 
    ptr= stpcpy(stpcpy(query, op), " TABLE ");
 
639
    ptr= my_stpcpy(my_stpcpy(query, op), " TABLE ");
640
640
    ptr= fix_table_name(ptr, tables);
641
641
    ptr= strxmov(ptr, " ", options, NullS);
642
642
    query_length= (uint) (ptr - query);
693
693
    }
694
694
    else
695
695
      printf("%-9s: %s", row[2], row[3]);
696
 
    stpcpy(prev, row[0]);
 
696
    my_stpcpy(prev, row[0]);
697
697
    putchar('\n');
698
698
  }
699
699
  /* add the last table to be repaired to the list */