From 569ee13ab177d8a80b663fd635cfd17d678ed3db Mon Sep 17 00:00:00 2001 From: Gary Date: Mon, 2 Sep 2024 17:42:00 +0100 Subject: [PATCH] SQL Fix for mariadb-galera --- internal/database/mysql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/database/mysql.go b/internal/database/mysql.go index 27db774d5..de62e623b 100644 --- a/internal/database/mysql.go +++ b/internal/database/mysql.go @@ -715,7 +715,7 @@ func (db *MySQLDatabase) GetTags(ctx context.Context) ([]model.Tag, error) { query := `SELECT bt.tag_id id, t.name, COUNT(bt.tag_id) n_bookmarks FROM bookmark_tag bt LEFT JOIN tag t ON bt.tag_id = t.id - GROUP BY bt.tag_id ORDER BY t.name` + GROUP BY bt.tag_id, t.name ORDER BY t.name` err := db.SelectContext(ctx, &tags, query) if err != nil && err != sql.ErrNoRows {