Commit d3efeb1b authored by unknown's avatar unknown

test a correct flag in Field::optimize_range

parent bfeaba69
...@@ -334,7 +334,7 @@ void Field::store_time(TIME *ltime,timestamp_type type) ...@@ -334,7 +334,7 @@ void Field::store_time(TIME *ltime,timestamp_type type)
bool Field::optimize_range(uint idx) 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