Skip to content

Commit

Permalink
pgq_node.drop_node: non-existing queue should not be error
Browse files Browse the repository at this point in the history
  • Loading branch information
markokr committed Oct 4, 2011
1 parent a4f77ba commit 2f88e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/pgq_node/functions/pgq_node.drop_node.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ returns record as $$
--
-- Return Codes:
-- 200 - Ok
-- 404 - No such queue
-- 304 - No such queue
------------------------------------------------------------------------
declare
_is_local boolean;
Expand All @@ -31,7 +31,7 @@ begin
where queue_name = i_queue_name;

if not found then
select 404, 'No such queue: ' || i_queue_name into ret_code, ret_note;
select 304, 'No such queue: ' || i_queue_name into ret_code, ret_note;
return;
end if;

Expand Down

0 comments on commit 2f88e19

Please sign in to comment.