Skip to content
Snippets Groups Projects
Commit 0490d262 authored by PavelBegunkov's avatar PavelBegunkov
Browse files

fix

parent ce382703
Branches
Tags
No related merge requests found
...@@ -2381,6 +2381,9 @@ BEGIN ...@@ -2381,6 +2381,9 @@ BEGIN
FROM `modules` FROM `modules`
WHERE DisciplineID = modules.DisciplineID WHERE DisciplineID = modules.DisciplineID
LIMIT 1; LIMIT 1;
IF checker IS NULL THEN
SET checker = 0;
END IF;
SET checker = checker + 1; SET checker = checker + 1;
...@@ -2884,8 +2887,12 @@ BEGIN ...@@ -2884,8 +2887,12 @@ BEGIN
FROM `submodules` FROM `submodules`
WHERE ModuleID = submodules.ModuleID WHERE ModuleID = submodules.ModuleID
LIMIT 1; LIMIT 1;
IF checker IS NULL THEN
SET checker = 0;
END IF;
SET checker = checker + 1; SET checker = checker + 1;
INSERT INTO `submodules` INSERT INTO `submodules`
( submodules.ModuleID, submodules.MaxRate, submodules.OrderNum, submodules.Name, submodules.Description, submodules.Type ) ( submodules.ModuleID, submodules.MaxRate, submodules.OrderNum, submodules.Name, submodules.Description, submodules.Type )
VALUES ( ModuleID, MaxRate, checker, Name, Description, ControlType); VALUES ( ModuleID, MaxRate, checker, Name, Description, ControlType);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment