Skip to content
Snippets Groups Projects
Commit 0d5f7a41 authored by RomanSteinberg's avatar RomanSteinberg
Browse files

FIX: remove isStudyLeave; Fix: username in makefile

parent 0215f796
No related merge requests found
...@@ -3,7 +3,7 @@ $(subst .sql, , $(wildcard $1/*.sql)) ...@@ -3,7 +3,7 @@ $(subst .sql, , $(wildcard $1/*.sql))
endef endef
USER := $(shell bash -c 'read -p "Username: " pwd; echo $$username') USER := $(shell bash -c 'read -p "Username: " username; echo $$username')
PASS := $(shell bash -c 'read -s -p "Password: " pwd; echo $$pwd') PASS := $(shell bash -c 'read -s -p "Password: " pwd; echo $$pwd')
DB := mmcs_rating DB := mmcs_rating
...@@ -20,6 +20,6 @@ deploy: $(call GET_NAMES, stored) ...@@ -20,6 +20,6 @@ deploy: $(call GET_NAMES, stored)
%: %:
mysql -u $(USER) $(PASS) $(DB) < $@.sql mysql -u $(USER) --password=$(PASS) $(DB) < $@.sql
...@@ -104,7 +104,7 @@ BEGIN ...@@ -104,7 +104,7 @@ BEGIN
disciplines_groups.GroupID = students_groups.GroupID disciplines_groups.GroupID = students_groups.GroupID
WHERE students_groups.StudentID = pStudentID AND WHERE students_groups.StudentID = pStudentID AND
students_groups.SemesterID = pSemesterID AND students_groups.SemesterID = pSemesterID AND
students_groups.IsStudyLeave = FALSE students_groups.State != 'expulsion'
LIMIT 1 LIMIT 1
); );
END // END //
...@@ -360,7 +360,7 @@ BEGIN ...@@ -360,7 +360,7 @@ BEGIN
FROM `students_groups` FROM `students_groups`
WHERE students_groups.StudentID = pStudentID AND WHERE students_groups.StudentID = pStudentID AND
students_groups.SemesterID = pSemesterID AND students_groups.SemesterID = pSemesterID AND
students_groups.IsStudyLeave = FALSE students_groups.State != 'expulsion'
LIMIT 1; LIMIT 1;
RETURN vGroupID; RETURN vGroupID;
......
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