Merge pull request 'fix: refs #6021 catalogue_findById' (!2312) from 6021-fix-item_get into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #2312
Reviewed-by: Pako Natek <pako@verdnatura.es>
This commit is contained in:
Pablo Natek 2024-04-16 16:00:55 +00:00
commit 886bd7f105
1 changed files with 3 additions and 5 deletions

View File

@ -1,15 +1,13 @@
DELIMITER $$
$$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE floranet.item_get(vCatalogueFk INT)
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE floranet.catalogue_findById(vSelf INT)
READS SQL DATA
BEGIN
/**
* Returns one recordset from catalogue
*
* @param vCatalogueFk Identifier de vn.catalogue
* @param vCatalogueFk Identifier de floranet.catalogue
*/
SELECT *
FROM catalogue
WHERE id = vCatalogueFk;
SELECT * FROM catalogue WHERE id = vSelf;
END$$
DELIMITER ;