From 501c337ac483495b774fe979bcd8d3695d1658cc Mon Sep 17 00:00:00 2001 From: "serg@serg.mylan" <> Date: Thu, 13 Nov 2003 17:39:41 +0100 Subject: [PATCH] test a correct flag in Field::optimize_range --- sql/field.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/field.cc b/sql/field.cc index 04e9c45327b..befa9993b05 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -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); } /****************************************************************************