svnno****@sourc*****
svnno****@sourc*****
2008年 6月 9日 (月) 17:00:56 JST
Revision: 135 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=tritonn&view=rev&rev=135 Author: mir Date: 2008-06-09 17:00:56 +0900 (Mon, 09 Jun 2008) Log Message: ----------- fixed 2ind for group functions sum, count ... Modified Paths: -------------- tags/tritonn-1.0.10-mysql-5.0.51a/sql/sql_select.cc -------------- next part -------------- Modified: tags/tritonn-1.0.10-mysql-5.0.51a/sql/sql_select.cc =================================================================== --- tags/tritonn-1.0.10-mysql-5.0.51a/sql/sql_select.cc 2008-06-09 06:31:03 UTC (rev 134) +++ tags/tritonn-1.0.10-mysql-5.0.51a/sql/sql_select.cc 2008-06-09 08:00:56 UTC (rev 135) @@ -10458,8 +10458,7 @@ decide_read_or_skip(JOIN *join,JOIN_TAB *join_tab,bool needs_record) { if (needs_record || (my_thread_var->sen_flags & (SENNA_DISTINCT | SENNA_FIRST_CALL)) || - (join_tab->next_select != end_send_group && - !join->unit->offset_limit_cnt && + (!join->unit->offset_limit_cnt && join->send_records < join->unit->select_limit_cnt)) { DEBUG_2IND(my_thread_var->sen_flags |= SENNA_IF_READ_RECORD); } else {