Commit 3f1f7102 authored by igor@rurik.mysql.com's avatar igor@rurik.mysql.com

sql_view.cc:

  A safety correction.
parent 42810cd0
...@@ -1110,8 +1110,11 @@ bool check_key_in_view(THD *thd, TABLE_LIST *view) ...@@ -1110,8 +1110,11 @@ bool check_key_in_view(THD *thd, TABLE_LIST *view)
for (Field_translator *fld= trans; fld < end_of_trans; fld++) for (Field_translator *fld= trans; fld < end_of_trans; fld++)
{ {
if (!fld->item->fixed && fld->item->fix_fields(thd, &fld->item)) if (!fld->item->fixed && fld->item->fix_fields(thd, &fld->item))
{
thd->set_query_id= save_set_query_id;
return TRUE; return TRUE;
} }
}
thd->set_query_id= save_set_query_id; thd->set_query_id= save_set_query_id;
} }
/* Loop over all keys to see if a unique-not-null key is used */ /* Loop over all keys to see if a unique-not-null key is used */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment