[Groonga-mysql-commit] mroonga/mroonga at 5a3fa7a [master] Reduce a nest

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Aug 16 18:42:29 JST 2013


Kouhei Sutou	2013-08-16 18:42:29 +0900 (Fri, 16 Aug 2013)

  New Revision: 5a3fa7a24514cd0aaa7c11908dbcf70f2ef6132c
  https://github.com/mroonga/mroonga/commit/5a3fa7a24514cd0aaa7c11908dbcf70f2ef6132c

  Message:
    Reduce a nest

  Modified files:
    lib/mrn_condition_converter.cpp

  Modified: lib/mrn_condition_converter.cpp (+1 -3)
===================================================================
--- lib/mrn_condition_converter.cpp    2013-08-16 18:38:31 +0900 (d871ccd)
+++ lib/mrn_condition_converter.cpp    2013-08-16 18:42:29 +0900 (6bbd22f)
@@ -129,17 +129,15 @@ namespace mrn {
         const Item_func *func_item = (const Item_func *)item;
         switch (func_item->functype()) {
         case Item_func::EQ_FUNC:
-          {
+          if (is_storage_mode_) {
             Item **arguments = func_item->arguments();
             Item *left_item = arguments[0];
             Item *right_item = arguments[1];
-            if (is_storage_mode_) {
               if (left_item->type() == Item::FIELD_ITEM &&
                   right_item->basic_const_item() &&
                   right_item->type() == Item::INT_ITEM) {
                 convertable = true;
               }
-            }
           }
           break;
         case Item_func::FT_FUNC:
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-mysql-commit mailing list
Back to archive index