599
599
switch (what_to_do) {
602
if (opt_quick) end = strmov(end, " QUICK");
603
if (opt_fast) end = strmov(end, " FAST");
604
if (opt_medium_check) end = strmov(end, " MEDIUM"); /* Default */
605
if (opt_extended) end = strmov(end, " EXTENDED");
606
if (opt_check_only_changed) end = strmov(end, " CHANGED");
607
if (opt_upgrade) end = strmov(end, " FOR UPGRADE");
602
if (opt_quick) end = stpcpy(end, " QUICK");
603
if (opt_fast) end = stpcpy(end, " FAST");
604
if (opt_medium_check) end = stpcpy(end, " MEDIUM"); /* Default */
605
if (opt_extended) end = stpcpy(end, " EXTENDED");
606
if (opt_check_only_changed) end = stpcpy(end, " CHANGED");
607
if (opt_upgrade) end = stpcpy(end, " FOR UPGRADE");
610
610
op= (opt_write_binlog) ? "REPAIR" : "REPAIR NO_WRITE_TO_BINLOG";
611
if (opt_quick) end = strmov(end, " QUICK");
612
if (opt_extended) end = strmov(end, " EXTENDED");
613
if (opt_frm) end = strmov(end, " USE_FRM");
611
if (opt_quick) end = stpcpy(end, " QUICK");
612
if (opt_extended) end = stpcpy(end, " EXTENDED");
613
if (opt_frm) end = stpcpy(end, " USE_FRM");
616
616
op= (opt_write_binlog) ? "ANALYZE" : "ANALYZE NO_WRITE_TO_BINLOG";
636
ptr= strmov(strmov(query, op), " TABLE ");
636
ptr= stpcpy(stpcpy(query, op), " TABLE ");
637
637
ptr= fix_table_name(ptr, tables);
638
638
ptr= strxmov(ptr, " ", options, NullS);
639
639
query_length= (uint) (ptr - query);