Skip to content

Commit

Permalink
no status when no results
Browse files Browse the repository at this point in the history
  • Loading branch information
salamonpavel committed Sep 23, 2024
1 parent 4b2a9db commit 8811b4e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ RETURNS SETOF record AS
--
-- Status codes:
-- 11 - OK
-- 12 - OK with no checkpoints found
-- 41 - Partitioning not found
--
-------------------------------------------------------------------------------
Expand Down Expand Up @@ -126,12 +125,6 @@ BEGIN
runs.measure_definitions MD ON M.fk_measure_definition = MD.id_measure_definition
ORDER BY
LC.id_checkpoint, LC.process_start_time;

IF NOT FOUND THEN
status := 12;
status_text := 'OK with no checkpoints found';
RETURN NEXT;
END IF;
END;
$$
LANGUAGE plpgsql VOLATILE SECURITY DEFINER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,6 @@ class GetPartitioningCheckpointsIntegrationTests extends DBTestSuite {
.setParam("i_offset", 1)
.setParam("i_checkpoint_name", i_checkpoint_name)
.execute { queryResult =>
assert(queryResult.hasNext)
val result = queryResult.next()
assert(result.getInt("status").contains(12))
assert(result.getString("status_text").contains("OK with no checkpoints found"))
assert(!queryResult.hasNext)
}

Expand Down

0 comments on commit 8811b4e

Please sign in to comment.