message: fix(Query): handle limit in BGP only when singleBGP
  Conflicts:
  Query/GeneralEvaluation.cpp
diff: @@ -501,7 +501,8 @@ TempResultSet* GeneralEvaluation::queryEvaluation(int dep)
  QueryInfo query_info;
  query_info.limit_ = false;
  - if(this->query_tree.getLimit()!=-1) {
  + query_info.limit_num_ = -1;
  + if(this->query_tree.getLimit()!=-1 && this->query_tree.getSingleBGP()) {
  query_info.limit_ = true;
  query_info.limit_num_ = this->query_tree.getLimit();
  }
  @@ -926,7 +927,8 @@ TempResultSet* GeneralEvaluation::queryEvaluation(int dep)
  QueryInfo query_info;
  query_info.limit_ = false;
  - if(this->query_tree.getLimit()!=-1) {
  + query_info.limit_num_ = -1;
  + if(this->query_tree.getLimit()!=-1 && this->query_tree.getSingleBGP()) {
  query_info.limit_ = true;
  query_info.limit_num_ = this->query_tree.getLimit();
  }
  @@ -3198,6 +3200,7 @@ void GeneralEvaluation::getFinalResult(ResultSet &ret_result)
  }
  ret_result.ansNum = (int)result0.result.size();
  + if (!this->query_tree.getSingleBGP())
  ret_result.setOutputOffsetLimit(this->query_tree.getOffset(), this->query_tree.getLimit());
  #ifdef STREAM_ON
  