MySQL Lists are EOL. Please join:

List:Internals« Previous MessageNext Message »
From:sanja Date:August 13 2005 2:06pm
Subject:bk commit into 5.0 tree (sanja:1.1991) BUG#12569
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of sanja. When sanja does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.1991 05/08/13 17:06:30 sanja@stripped +2 -0
  table.cc:
    remove unneeded multitable_view assignment
  sql_view.cc:
    fix potential memorry overrun in ref_array
    asssign multitable_view in time of view creation (BUG#12569)

  sql/table.cc
    1.177 05/08/13 17:03:08 sanja@stripped +0 -2
    remove unneeded multitable_view assignment

  sql/sql_view.cc
    1.57 05/08/13 17:01:39 sanja@stripped +7 -0
    fix potential memorry overrun in ref_array
    asssign multitable_view in time of view creation

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	sanja
# Host:	hasky.mysql.fi
# Root:	/home/sanja/work-merge-5.0

--- 1.176/sql/table.cc	2005-08-12 17:57:15 +03:00
+++ 1.177/sql/table.cc	2005-08-13 17:03:08 +03:00
@@ -1720,8 +1720,6 @@
         */
         tbl->ancestor->set_ancestor();
       }
-      if (tbl->multitable_view)
-        multitable_view= TRUE;
     } while ((tbl= tbl->next_local));
 
     if (!multitable_view)

--- 1.56/sql/sql_view.cc	2005-08-12 12:14:06 +03:00
+++ 1.57/sql/sql_view.cc	2005-08-13 17:01:39 +03:00
@@ -844,6 +844,9 @@
                                                          view_tables);
       lex->select_lex.context.outer_context= 0;
       lex->select_lex.context.select_lex= table->select_lex;
+      lex->select_lex.select_n_having_items+=
+        table->select_lex->select_n_having_items;
+
       /* do not check privileges & hide errors for view underlyings */
       for (SELECT_LEX *sl= lex->all_selects_list;
            sl;
@@ -864,7 +867,11 @@
 
       {
         if (view_tables->next_local)
+        {
           table->multitable_view= TRUE;
+          if (table->belong_to_view)
+           table->belong_to_view->multitable_view= TRUE;
+        }
         /* make nested join structure for view tables */
         NESTED_JOIN *nested_join;
         if (!(nested_join= table->nested_join=
Thread
bk commit into 5.0 tree (sanja:1.1991) BUG#12569sanja13 Aug