[Commits] Rev 3382: Removed unused code from 5.2. In 5.3 we fix this problem by checking if we put max/min group function in file:///home/bell/maria/bzr/work-maria-5.3-cleanup/

sanja at montyprogram.com sanja at montyprogram.com
Fri Jan 13 13:34:24 EET 2012


At file:///home/bell/maria/bzr/work-maria-5.3-cleanup/

------------------------------------------------------------
revno: 3382
revision-id: sanja at montyprogram.com-20120113113422-x1bhtsk15bzs8ohx
parent: sanja at montyprogram.com-20120111083516-fei2c3fzara3n152
committer: sanja at montyprogram.com
branch nick: work-maria-5.3-cleanup
timestamp: Fri 2012-01-13 13:34:22 +0200
message:
  Removed unused code from 5.2. In 5.3 we fix this problem by checking if we put max/min group function
  without GROUP BY artificially in case of MODE_ONLY_FULL_GROUP_BY sql mode.
-------------- next part --------------
=== modified file 'sql/item_subselect.cc'
--- a/sql/item_subselect.cc	2012-01-03 04:06:36 +0000
+++ b/sql/item_subselect.cc	2012-01-13 11:34:22 +0000
@@ -1672,10 +1672,6 @@ bool Item_allany_subselect::transform_in
 
     DBUG_EXECUTE("where",
                  print_where(item, "rewrite with MIN/MAX", QT_ORDINARY););
-    if (thd->variables.sql_mode & MODE_ONLY_FULL_GROUP_BY)
-    {
-      select_lex->set_non_agg_field_used(false);
-    }
 
     save_allow_sum_func= thd->lex->allow_sum_func;
     thd->lex->allow_sum_func|= 1 << thd->lex->current_select->nest_level;



More information about the commits mailing list