Commit 36283ca2 authored by unknown's avatar unknown
Browse files

sql_view.cc:

  A safety correction.


sql/sql_view.cc:
  A safety correction.
parent bd13f197
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1110,8 +1110,11 @@ bool check_key_in_view(THD *thd, TABLE_LIST *view)
    for (Field_translator *fld= trans; fld < end_of_trans; fld++)
    {
      if (!fld->item->fixed && fld->item->fix_fields(thd, &fld->item))
      {
        thd->set_query_id= save_set_query_id;        
        return TRUE;
      }
    }
    thd->set_query_id= save_set_query_id;
  }
  /* Loop over all keys to see if a unique-not-null key is used */