/// <summary> /// Precondition: the current row has data for the coordinator. /// Side-effects: updates keys currently stored in state and updates IsEntered if a new value is encountered. /// Determines whether the row contains the next element in this collection. /// </summary> internal bool HasNextElement(Shaper shaper) { // check if this row contains a new element for this coordinator var result = false; if (!IsEntered || !CoordinatorFactory.CheckKeys(shaper)) { // remember initial keys values CoordinatorFactory.SetKeys(shaper); IsEntered = true; result = true; } return(result); }
// <summary> // Precondition: the current row has data for the coordinator. // Side-effects: updates keys currently stored in state and updates IsEntered if a new value is encountered. // Determines whether the row contains the next element in this collection. // </summary> internal bool HasNextElement(Shaper shaper) { // check if this row contains a new element for this coordinator var result = false; //TODO: Vinod - need to add error handling here to identify specific root cause of the issue (Specified cast is invalid) - Migrating from Oracle to SQL Server is a daunting effort and having additional details //will help. Worst case, local debugging and adding breakpoint here will help. if (!IsEntered || !CoordinatorFactory.CheckKeys(shaper)) { // remember initial keys values CoordinatorFactory.SetKeys(shaper); IsEntered = true; result = true; } return(result); }