This commit is contained in:
parent
ebe763dc9b
commit
330c1f3de6
|
@ -12,11 +12,6 @@ BEGIN
|
||||||
DECLARE vNewQueue VARCHAR(10);
|
DECLARE vNewQueue VARCHAR(10);
|
||||||
DECLARE vExtension VARCHAR(10);
|
DECLARE vExtension VARCHAR(10);
|
||||||
DECLARE exit handler FOR SQLEXCEPTION
|
DECLARE exit handler FOR SQLEXCEPTION
|
||||||
BEGIN
|
|
||||||
ROLLBACK;
|
|
||||||
END;
|
|
||||||
|
|
||||||
START TRANSACTION;
|
|
||||||
|
|
||||||
SELECT d.pbxQueue, s.extension
|
SELECT d.pbxQueue, s.extension
|
||||||
INTO vNewQueue, vExtension
|
INTO vNewQueue, vExtension
|
||||||
|
@ -30,7 +25,5 @@ BEGIN
|
||||||
|
|
||||||
INSERT IGNORE INTO pbx.queueMember (queue, extension)
|
INSERT IGNORE INTO pbx.queueMember (queue, extension)
|
||||||
VALUES (vNewQueue, vExtension);
|
VALUES (vNewQueue, vExtension);
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
END$$
|
END$$
|
||||||
DELIMITER ;
|
DELIMITER ;
|
Loading…
Reference in New Issue