From 991bece64a6f1c65139829dd867cf79d18460f15 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Mon, 28 Sep 2020 21:25:53 +0200 Subject: [PATCH] SQL fixes --- db/changes/10221-accountModule/00-user_getNameFromId.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/changes/10221-accountModule/00-user_getNameFromId.sql b/db/changes/10221-accountModule/00-user_getNameFromId.sql index ae9ae5941..fc3b721c5 100644 --- a/db/changes/10221-accountModule/00-user_getNameFromId.sql +++ b/db/changes/10221-accountModule/00-user_getNameFromId.sql @@ -13,8 +13,8 @@ BEGIN SELECT `name` INTO vName FROM user - WHERE id = vId; + WHERE id = vSelf; - RETURN vSelf; + RETURN vName; END$$ DELIMITER ;