[Commits] Rev 3383: Removed unused code merged 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
Wed Jan 18 13:55:17 EET 2012


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

------------------------------------------------------------
revno: 3383
revision-id: sanja at montyprogram.com-20120118115514-ubg709c2gi84elhn
parent: monty at askmonty.org-20120113123549-up4io472coa825am
committer: sanja at montyprogram.com
branch nick: work-maria-5.3-cleanup
timestamp: Wed 2012-01-18 13:55:14 +0200
message:
  Removed unused code merged 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-18 11:55:14 +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