[Commits] Rev 3217: Fixed the failure of sp.test reported in the issue MDEV-86. in file:///home/igor/maria/maria-5.5/

Igor Babaev igor at askmonty.org
Wed Jan 18 09:42:50 EET 2012


At file:///home/igor/maria/maria-5.5/

------------------------------------------------------------
revno: 3217
revision-id: igor at askmonty.org-20120118074249-b0htie8dkn2vvx58
parent: sergii at pisem.net-20120116201305-51ed9e0dc9bw7blp
committer: Igor Babaev <igor at askmonty.org>
branch nick: maria-5.5
timestamp: Tue 2012-01-17 23:42:49 -0800
message:
  Fixed the failure of sp.test reported in the issue MDEV-86.
-------------- next part --------------
=== modified file 'sql/sql_derived.cc'
--- a/sql/sql_derived.cc	2012-01-13 14:50:02 +0000
+++ b/sql/sql_derived.cc	2012-01-18 07:42:49 +0000
@@ -750,6 +750,7 @@
     if (!derived->is_merged_derived())
     {
       JOIN *join= first_select->join;
+      unit->set_limit(first_select);
       unit->optimized= TRUE;
       if ((res= join->optimize()))
         goto err;



More information about the commits mailing list