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

teacher NULL dep fix

parent 9dcd9c93
Branches
Tags
No related merge requests found
...@@ -1313,7 +1313,8 @@ BEGIN ...@@ -1313,7 +1313,8 @@ BEGIN
SELECT departments.ID SELECT departments.ID
INTO DepID INTO DepID
FROM `departments` FROM `departments`
WHERE departments.Name = DepartmentName WHERE departments.Name = DepartmentName OR
(DepartmentName = '' AND departments.Name IS NULL)
LIMIT 1; LIMIT 1;
IF DepID <= 0 THEN IF DepID <= 0 THEN
RETURN -1; RETURN -1;
......
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