17 lines
370 B
SQL
17 lines
370 B
SQL
|
|
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);
|
|
|
|
SELECT * FROM tmp.zoneOption;
|
|
|
|
DROP TEMPORARY TABLE
|
|
tmp.zone,
|
|
tmp.zoneOption;
|
|
END$$
|
|
DELIMITER ;
|
|
|