Commit 4bbed516 by Jose Antonio

Issue #221, closed

parent c6ea746f
......@@ -107,6 +107,9 @@ BEGIN
IF (idopentry IS NOT NULL) THEN
DELETE FROM try
WHERE id = idopentry;
DELETE FROM stu_opentry
WHERE id_ws = ws;
END IF;
END;;
......@@ -303,15 +306,19 @@ thisTrigger: BEGIN
IF ((new.end IS NOT NULL) AND (new.current IS NOT NULL)) THEN
SET new.current=NULL;
-- DONE IN TRG_SESSION_CLOSED
-- Remove opentry record
DELETE FROM stu_opentry
WHERE id_ws = new.id;
-- DELETE FROM stu_opentry
-- WHERE id_ws = new.id;
-- Remove tries with no actions
DELETE FROM `try`
WHERE
end = NULL AND
id_ws = new.id;
-- DELETE FROM `try`
-- WHERE
-- end IS NULL AND
-- id_ws = new.id;
END IF;
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