Commit 34bf64bc authored by unknown's avatar unknown
Browse files

WL#2486 - natural and using join according to SQL:2003

- Fixed minor error after Monty's review.


sql/table.cc:
  cur_table_ref is used in the first pass of the loop *before* it is set later in the loop.
parent 4d2bf4be
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2251,7 +2251,6 @@ TABLE_LIST *st_table_list::last_leaf_for_name_resolution()
{
  TABLE_LIST *cur_table_ref= this;
  NESTED_JOIN *cur_nested_join;
  LINT_INIT(cur_table_ref);

  if (is_leaf_for_name_resolution())
    return this;