Commit 501c337a authored by serg@serg.mylan's avatar serg@serg.mylan

test a correct flag in Field::optimize_range

parent f4d7afd2
......@@ -334,7 +334,7 @@ void Field::store_time(TIME *ltime,timestamp_type type)
bool Field::optimize_range(uint idx)
{
return test(table->file->index_flags(idx) & HA_READ_NEXT);
return !test(table->file->index_flags(idx) & HA_WRONG_ASCII_ORDER);
}
/****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment