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));
|
2019-10-31 11:54:16 +00:00
|
|
|
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 ;
|
|
|
|
|