diff --git a/include/myisam.h b/include/myisam.h index c79bdbe14c8..0548db5994c 100644 --- a/include/myisam.h +++ b/include/myisam.h @@ -295,6 +295,12 @@ extern uint mi_get_pointer_length(ulonglong file_length, uint def); #define T_QUICK (1L << 30) #define T_RETRY_WITHOUT_QUICK (1L << 31) +/* flags used by myisamchk.c or/and ha_myisam.cc that do NOT passed + * to mi_check.c follows: + * */ + +#define TT_USEFRM 1 + #define O_NEW_INDEX 1 /* Bits set in out_flag */ #define O_NEW_DATA 2 #define O_DATA_LOST 4 diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 83a21b03ac4..e17171082ef 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -1324,9 +1324,9 @@ mi_repair_types: | mi_repair_type mi_repair_types {} mi_repair_type: - QUICK { Lex->check_opt.flags|= T_QUICK; } + QUICK { Lex->check_opt.flags|= T_QUICK; } | EXTENDED_SYM { Lex->check_opt.flags|= T_EXTEND; } - | USE_FRM { /*Lex->check_opt.flags|= T_USEFRM;*/ } + | USE_FRM { Lex->check_opt.sql_flags|= TT_USEFRM; } analyze: ANALYZE_SYM table_or_tables