A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: RIGHT join is not support in sqlite3, use LEFT instead.
LinkinStarf248a529805d
diff --git a/internal/repo/question_repo.go b/internal/repo/question_repo.goindex 8554fea1..f6f4e40b 100644--- a/internal/repo/question_repo.go+++ b/internal/repo/question_repo.go@@ -185,7 +185,7 @@ func (qr *questionRepo) SearchList(ctx context.Context, search *schema.QuestionSsession := qr.data.DB.Table("question")if len(search.TagIDs) > 0 {- session = session.Join("RIGHT", "tag_rel", "question.id = tag_rel.object_id")+ session = session.Join("LEFT", "tag_rel", "question.id = tag_rel.object_id")session = session.And("tag_rel.tag_id =?", search.TagIDs[0])//session = session.In("tag_rel.tag_id ", search.TagIDs)session = session.And("tag_rel.status =?", entity.TagRelStatusAvailable)