14 lines
343 B
MySQL
14 lines
343 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`zone_getAvailable`(vAddress INT, vLanded DATE)
|
||
|
BEGIN
|
||
|
CALL zone_getFromGeo(address_getGeo(vAddress));
|
||
|
CALL zone_getOptionsForLanding(vLanded, FALSE);
|
||
|
|
||
|
SELECT * FROM tmp.zoneOption;
|
||
|
|
||
|
DROP TEMPORARY TABLE
|
||
|
tmp.zone,
|
||
|
tmp.zoneOption;
|
||
|
END$$
|
||
|
DELIMITER ;
|