Kouhei Sutou
null+****@clear*****
Fri Oct 5 23:30:32 JST 2012
Kouhei Sutou 2012-10-05 23:30:32 +0900 (Fri, 05 Oct 2012) New Revision: eabd82f567cbf2b4e1cd255926f5c2c7fdf3de59 https://github.com/mroonga/mroonga/commit/eabd82f567cbf2b4e1cd255926f5c2c7fdf3de59 Log: Specify GRN_CURSOR_GE and GRN_CURSOR_ASCENDING explicitly. They are the default. Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+11 -2) =================================================================== --- ha_mroonga.cpp 2012-10-05 23:25:16 +0900 (c4cfeef) +++ ha_mroonga.cpp 2012-10-05 23:30:32 +0900 (cd32852) @@ -6833,8 +6833,17 @@ int ha_mroonga::storage_read_range_first(const key_range *start_key, break; } } - if (end_key && end_key->flag == HA_READ_BEFORE_KEY) { - flags |= GRN_CURSOR_LT | GRN_CURSOR_ASCENDING; + if (end_key) { + switch (end_key->flag) { + case HA_READ_BEFORE_KEY: + flags |= GRN_CURSOR_LT | GRN_CURSOR_ASCENDING; + break; + case HA_READ_AFTER_KEY: + flags |= GRN_CURSOR_GE | GRN_CURSOR_ASCENDING; + break; + default: + break; + } } uint pkey_nr = table->s->primary_key; -------------- next part -------------- HTML����������������������������...Download