Skip to content

Commit

Permalink
Fixes bug 1018349 - add COALESCE to max(sort) when adding a new product
Browse files Browse the repository at this point in the history
  • Loading branch information
selenamarie authored and rhelmer committed Jun 25, 2014
1 parent 8bbe100 commit 2120a6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ IF FOUND THEN
END IF;

-- add the product
SELECT max(sort) INTO current_sort
SELECT COALESCE(max(sort),0) INTO current_sort
FROM products;

INSERT INTO products ( product_name, sort, rapid_release_version,
Expand Down

0 comments on commit 2120a6a

Please sign in to comment.