7430_devToTest #2490
|
@ -1,5 +1,5 @@
|
|||
DELIMITER $$
|
||||
CREATE OR REPLACE FUNCTION vn.sale_hasComponentLack(vSelf INT)
|
||||
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `vn`.`sale_hasComponentLack`(vSelf INT)
|
||||
RETURNS tinyint(1)
|
||||
READS SQL DATA
|
||||
BEGIN
|
||||
|
@ -12,7 +12,7 @@ BEGIN
|
|||
|
||||
WITH componentRequired AS(
|
||||
SELECT COUNT(*)total
|
||||
FROM component
|
||||
FROM vn.component
|
||||
WHERE isRequired
|
||||
)SELECT SUM(IF(c.isRequired, TRUE, FALSE)) <> cr.total INTO vHasComponentLack
|
||||
FROM vn.sale s
|
||||
|
|
Loading…
Reference in New Issue