From edb76d00ce6ba4a112fe45950fefef9a9aa00f6d Mon Sep 17 00:00:00 2001 From: PavelBegunkov <asml.Silence@gmail.com> Date: Fri, 22 Aug 2014 21:48:20 +0400 Subject: [PATCH] fix #1 --- db/StoredProcedures.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/db/StoredProcedures.sql b/db/StoredProcedures.sql index b3628d872..2dbbe4131 100644 --- a/db/StoredProcedures.sql +++ b/db/StoredProcedures.sql @@ -400,9 +400,10 @@ CREATE PROCEDURE `GetPersonalInfoByID` ( IN `UserID` INT NO SQL BEGIN DECLARE accType INT; - SELECT accounts.Type + SELECT user_roles.Type INTO accType - FROM accounts + FROM `accounts` + INNER JOIN `user_roles` ON accounts.UserRoleID = user_roles.ID WHERE accounts.ID = UserID LIMIT 1; -- GitLab