List:Commits« Previous MessageNext Message »
From:eugene Date:March 7 2007 9:11am
Subject:bk commit into 5.0 tree (evgen:1.2432)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of evgen. When evgen 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@stripped, 2007-03-07 12:10:59+03:00, evgen@stripped +1 -0
  Merge epotemkin@stripped:/home/bk/mysql-5.0-opt
  into  moonbone.local:/mnt/gentoo64/work/25376-bug-5.0-opt-mysql
  MERGE: 1.2430.1.1

  sql/sql_select.cc@stripped, 2007-03-07 12:10:57+03:00, evgen@stripped +0 -0
    Auto merged
    MERGE: 1.495.1.1

# 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:	evgen
# Host:	moonbone.local
# Root:	/mnt/gentoo64/work/25376-bug-5.0-opt-mysql/RESYNC

--- 1.496/sql/sql_select.cc	2007-03-05 23:33:56 +03:00
+++ 1.497/sql/sql_select.cc	2007-03-07 12:10:57 +03:00
@@ -456,6 +456,17 @@
 
   select_lex->fix_prepare_information(thd, &conds, &having);
 
+  if (order)
+  {
+    ORDER *ord;
+    for (ord= order; ord; ord= ord->next)
+    {
+      Item *item= *ord->item;
+      if (item->with_sum_func && item->type() != Item::SUM_FUNC_ITEM)
+        item->split_sum_func(thd, ref_pointer_array, all_fields);
+    }
+  }
+
   if (having && having->with_sum_func)
     having->split_sum_func2(thd, ref_pointer_array, all_fields,
                             &having, TRUE);
Thread
bk commit into 5.0 tree (evgen:1.2432)eugene7 Mar