Commit bad4129f authored by serg@serg.mysql.com's avatar serg@serg.mysql.com
Browse files

bug fixed (sometimes it broke filesort, due to too late maybe_null=1)

parent 6192d838
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -287,3 +287,5 @@ support-files/mysql.server
support-files/mysql.spec
tags
tmp/*
myisam/test1.MYD
myisam/test1.MYI
+1 −0
Original line number Diff line number Diff line
@@ -8,3 +8,4 @@ mwagner@evoq.mwagner.org
paul@central.snake.net
paul@teton.kitebird.com
sasha@mysql.sashanet.com
serg@serg.mysql.com
+3 −2
Original line number Diff line number Diff line
@@ -1951,6 +1951,9 @@ bool Item_func_match::fix_fields(THD *thd,struct st_table_list *tlist)
  List_iterator<Item> li(fields);
  Item *item;

  maybe_null=1;
  join_key=0;

  /* Why testing for const_item ? Monty */
  /* I'll remove it later, but this should include modifications to
     find_best and auto_close as complement to auto_init code above. SerG */
@@ -2044,8 +2047,6 @@ bool Item_func_match::fix_index()
      continue;

    this->key=ft_to_key[key];
    maybe_null=1;
    join_key=0;

    return 0;
  }