} else { boolean eq = nextLhsTuple != null && lhsKey.equals(nextLhsKey); advance(true); if (eq) { queueIterator = queue.iterator(); if (nextRhsTuple == null || !rhsKey.equals(nextRhsKey)) { queueIterator = queue.iterator(); advance(true); } else if (isSingleValueOnly) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.SINGLE_ROW_SUBQUERY_RETURNS_MULTIPLE_ROWS).build().buildException(); advance(true); } else if (isSingleValueOnly) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.SINGLE_ROW_SUBQUERY_RETURNS_MULTIPLE_ROWS).build().buildException(); advance(false); } else if (lhsKey.compareTo(rhsKey) < 0) { if (type == JoinType.Full || type == JoinType.Left) { next = join(lhsTuple, null); advance(true); } else { if (type == JoinType.Full) { next = join(null, rhsTuple); advance(false); advance(true);
} else { boolean eq = nextLhsTuple != null && lhsKey.equals(nextLhsKey); advance(true); if (eq) { queueIterator = queue.iterator(); if (nextRhsTuple == null || !rhsKey.equals(nextRhsKey)) { queueIterator = queue.iterator(); advance(true); } else if (isSingleValueOnly) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.SINGLE_ROW_SUBQUERY_RETURNS_MULTIPLE_ROWS).build().buildException(); advance(true); } else if (isSingleValueOnly) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.SINGLE_ROW_SUBQUERY_RETURNS_MULTIPLE_ROWS).build().buildException(); advance(false); } else if (lhsKey.compareTo(rhsKey) < 0) { if (type == JoinType.Full || type == JoinType.Left) { next = join(lhsTuple, null); advance(true); } else { if (type == JoinType.Full) { next = join(null, rhsTuple); advance(false); advance(true);
} else { boolean eq = nextLhsTuple != null && lhsKey.equals(nextLhsKey); advance(true); if (eq) { queueIterator = queue.iterator(); if (nextRhsTuple == null || !rhsKey.equals(nextRhsKey)) { queueIterator = queue.iterator(); advance(true); } else if (isSingleValueOnly) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.SINGLE_ROW_SUBQUERY_RETURNS_MULTIPLE_ROWS).build().buildException(); advance(true); } else if (isSingleValueOnly) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.SINGLE_ROW_SUBQUERY_RETURNS_MULTIPLE_ROWS).build().buildException(); advance(false); } else if (lhsKey.compareTo(rhsKey) < 0) { if (type == JoinType.Full || type == JoinType.Left) { next = join(lhsTuple, null); advance(true); } else { if (type == JoinType.Full) { next = join(null, rhsTuple); advance(false); advance(true);