salix/db/changes/10081-agency/00-zone_getAvailable.sql

17 lines
370 B
MySQL
Raw Normal View History

2019-09-26 08:08:37 +00:00
DROP PROCEDURE IF EXISTS `vn`.`zone_getAvailable`;
DELIMITER $$
CREATE DEFINER=`root`@`%` PROCEDURE `vn`.`zone_getAvailable`(vAddress INT, vLanded DATE)
BEGIN
CALL zone_getFromGeo(address_getGeo(vAddress));
CALL zone_getOptionsForLanding(vLanded);
2019-09-26 08:08:37 +00:00
2019-09-26 10:47:16 +00:00
SELECT * FROM tmp.zoneOption;
2019-09-26 08:08:37 +00:00
2019-09-26 10:47:16 +00:00
DROP TEMPORARY TABLE
tmp.zone,
tmp.zoneOption;
2019-09-26 08:08:37 +00:00
END$$
DELIMITER ;