Commit 4bbed516 by Jose Antonio

Issue #221, closed

parent c6ea746f
...@@ -107,6 +107,9 @@ BEGIN ...@@ -107,6 +107,9 @@ BEGIN
IF (idopentry IS NOT NULL) THEN IF (idopentry IS NOT NULL) THEN
DELETE FROM try DELETE FROM try
WHERE id = idopentry; WHERE id = idopentry;
DELETE FROM stu_opentry
WHERE id_ws = ws;
END IF; END IF;
END;; END;;
...@@ -303,15 +306,19 @@ thisTrigger: BEGIN ...@@ -303,15 +306,19 @@ thisTrigger: BEGIN
IF ((new.end IS NOT NULL) AND (new.current IS NOT NULL)) THEN IF ((new.end IS NOT NULL) AND (new.current IS NOT NULL)) THEN
SET new.current=NULL; SET new.current=NULL;
-- DONE IN TRG_SESSION_CLOSED
-- Remove opentry record -- Remove opentry record
DELETE FROM stu_opentry -- DELETE FROM stu_opentry
WHERE id_ws = new.id; -- WHERE id_ws = new.id;
-- Remove tries with no actions -- Remove tries with no actions
DELETE FROM `try` -- DELETE FROM `try`
WHERE -- WHERE
end = NULL AND -- end IS NULL AND
id_ws = new.id; -- id_ws = new.id;
END IF; END IF;
END;; END;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment