Skip to content
Snippets Groups Projects
Commit 9de64ea3 authored by Anton Shalimov's avatar Anton Shalimov
Browse files

Fix sql students search

parent 04e6965e
Branches
Tags
No related merge requests found
......@@ -574,6 +574,7 @@ BEGIN
END //
# todo: refactor
# not in general groups, not attached
DROP PROCEDURE IF EXISTS SearchStudents//
CREATE PROCEDURE `SearchStudents` (
......@@ -616,6 +617,7 @@ BEGIN
WHERE view_students.SemesterID = vSemesterID AND
view_students.FacultyID = pFacultyID AND
view_students.GradeID = pGradeID AND
(pGroupID = 0 OR view_students.GroupID = pGroupID) AND
tAttStud.StudentID IS NULL AND
tDiscGroups.GroupID IS NULL AND
CASE WHEN pFullName != '' THEN
......
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