public SelectResult Merge(SelectResult[] partitionResults) { SelectContext localContext = SafeGetContext(null); if (localContext.Pass1Results != null) { if (localContext.Pass1Results.Details.Succeeded == false || localContext.Pass1Results.CountReturned == 0) { return(localContext.Pass1Results); } } return(localContext.Merge(partitionResults)); }
public SelectResult Merge(SelectResult[] partitionResults) { SelectContext localContext = SafeGetContext(null); if (localContext.Pass1Results != null) { if (localContext.Pass1Results.Details.Succeeded == false || localContext.Pass1Results.CountReturned == 0) { return(localContext.Pass1Results); } } SelectResult result = localContext.Merge(partitionResults); if (localContext.Pass1Results != null) { // If this isn't the first pass, use the total from the first pass result.Total = localContext.Pass1Results.Total; } return(result); }