From 4b20f4b0d938d9f1ef73bb7a0eedac31ed0f5f5e Mon Sep 17 00:00:00 2001 From: PavelBegunkov <asml.Silence@gmail.com> Date: Tue, 26 Aug 2014 14:03:21 +0400 Subject: [PATCH] fix #9 --- db/StoredProcedures.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/StoredProcedures.sql b/db/StoredProcedures.sql index 51e607941..4802fd275 100644 --- a/db/StoredProcedures.sql +++ b/db/StoredProcedures.sql @@ -1183,7 +1183,8 @@ BEGIN WHERE disciplines.SubjectID = SubjectID AND disciplines.SemesterID = semID AND ( disciplines_students.Type = 'attach' OR - (disciplines_students.Type != 'detach' AND disciplines_groups.StudyGroupID = groupID ) + ((disciplines_students.Type IS NULL OR disciplines_students.Type != 'detach') AND + disciplines_groups.StudyGroupID = groupID ) ) LIMIT 1; -- GitLab