From be81835474b39e34dc9aadd10cc1d2d8d7725008 Mon Sep 17 00:00:00 2001 From: sergiodt Date: Tue, 20 Feb 2024 16:11:59 +0100 Subject: [PATCH] refs #6834 feat:handle Error --- db/routines/vn/procedures/sectorCollectionSaleGroup_add.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/routines/vn/procedures/sectorCollectionSaleGroup_add.sql b/db/routines/vn/procedures/sectorCollectionSaleGroup_add.sql index 2ef932384..eb720f31e 100644 --- a/db/routines/vn/procedures/sectorCollectionSaleGroup_add.sql +++ b/db/routines/vn/procedures/sectorCollectionSaleGroup_add.sql @@ -16,7 +16,7 @@ BEGIN WHERE sg.id = vSaleGroupFk; IF !vHasSaleGroup THEN - CALL util.Throw ("INVALID_SALEGROUP"); + CALL util.throw ("INVALID_SALEGROUP"); END IF; SELECT COUNT(id) INTO vHasSectorCollection @@ -24,7 +24,7 @@ BEGIN WHERE scsg.id = vSectorCollectionFk; IF !vHasSectorCollection THEN - CALL util.Throw ("INVALID_SECTORCOLLECTION"); + CALL util.throw ("INVALID_SECTORCOLLECTION"); END IF; REPLACE sectorCollectionSaleGroup