602
602
switch (what_to_do) {
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");
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");
619
619
op= (opt_write_binlog) ? "ANALYZE" : "ANALYZE NO_WRITE_TO_BINLOG";
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);