From 8b8880612ca969cbc195df534e0f190819d99064 Mon Sep 17 00:00:00 2001 From: Humanz Date: Sat, 5 Mar 2022 16:37:22 +0700 Subject: [PATCH] Change * to row name --- pkg/database/generaldb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/database/generaldb.go b/pkg/database/generaldb.go index 36647fb4..d87e12af 100755 --- a/pkg/database/generaldb.go +++ b/pkg/database/generaldb.go @@ -113,7 +113,7 @@ func GetMembers(GroupID int64) ([]Member, error) { Data []Member ) - rows, err := DB.Query(`SELECT * FROM Vtuber.VtuberMember WHERE VtuberGroup_id=? Order by Region,VtuberGroup_id;`, GroupID) + rows, err := DB.Query(`SELECT id, VtuberName, VtuberName_EN, VtuberName_JP, Twitter_Username, Twitter_Hashtag, Twitter_Avatar, Twitter_Banner, Twitter_Lewd, Youtube_ID, Youtube_Avatar, Youtube_Banner, BiliBili_SpaceID, BiliBili_RoomID, BiliBili_Avatar, BiliBili_Hashtag, BiliBili_Banner, Twitch_Username, Twitch_Avatar, Region, Fanbase, Status, VtuberGroup_id FROM Vtuber.VtuberMember WHERE VtuberGroup_id=? Order by Region,VtuberGroup_id;`, GroupID) if err != nil { return nil, err }