Navigation Menu

Skip to content

Commit

Permalink
[wrapper] add NULL check.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 25, 2011
1 parent 4bd1a33 commit 5624c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cc
Expand Up @@ -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"));
Expand Down

0 comments on commit 5624c69

Please sign in to comment.