[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] [wrapper] add NULL check.

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:29:57 JST 2012


Kouhei Sutou	2011-09-25 20:11:49 +0900 (Sun, 25 Sep 2011)

  New Revision: 5624c69416b371616a8517df83f54327c077705c
  https://github.com/mroonga/mroonga/commit/5624c69416b371616a8517df83f54327c077705c

  Log:
    [wrapper] add NULL check.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc    2011-09-25 20:04:16 +0900 (ee33579)
+++ ha_mroonga.cc    2011-09-25 20:11:49 +0900 (b880643)
@@ -5669,7 +5669,7 @@ void ha_mroonga::check_fast_order_limit(grn_table_sort_key **sort_keys,
       }
     }
     grn_obj *index;
-    if (i == 1 && col_field_index >= 0 &&
+    if (grn_columns && i == 1 && col_field_index >= 0 &&
         grn_column_index(ctx, grn_columns[col_field_index], GRN_OP_LESS,
                          &index, 1, NULL)) {
       DBUG_PRINT("info", ("mroonga fast_order_limit_with_index = TRUE"));
-------------- next part --------------
HTML����������������������������...
Download 



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