[Groonga-mysql-commit] mroonga/mroonga [master] [wrapper] add NULL check.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 9月 25日 (日) 20:11:49 JST


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

  New Revision: 5624c69416b371616a8517df83f54327c077705c

  Log:
    [wrapper] add NULL check.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc    2011-09-25 11:04:16 +0000 (ee33579)
+++ ha_mroonga.cc    2011-09-25 11:11:49 +0000 (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"));




Groonga-mysql-commit メーリングリストの案内
Back to archive index