Skip to content

Fix SQL request for user labels with custom sort#7588

Merged
Alkarex merged 1 commit intoFreshRSS:edgefrom
Alkarex:fix-sql-distinct
May 13, 2025
Merged

Fix SQL request for user labels with custom sort#7588
Alkarex merged 1 commit intoFreshRSS:edgefrom
Alkarex:fix-sql-distinct

Conversation

@Alkarex
Copy link
Member

@Alkarex Alkarex commented May 13, 2025

The list or articles with a user label with a custom sort was broken when using PostgreSQL

Example: https://freshrss.example.net/i/?a=normal&get=T&sort=title&order=ASC

SQL error FreshRSS_EntryDAO::listWhereRaw["42P10",7,"ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list\nLINE 3: ...d_entry = e.id WHERE 1=1 AND e.id <= $1 ORDER BY e.title DE...\n ^"]

The list or articles with a user label with a custom sort was broken when using PostgreSQL

Example: `https://freshrss.example.net/i/?a=normal&get=T&sort=title&order=ASC`

```
SQL error FreshRSS_EntryDAO::listWhereRaw["42P10",7,"ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list\nLINE 3: ...d_entry = e.id WHERE 1=1 AND e.id <= $1 ORDER BY e.title DE...\n ^"]
```
@Alkarex Alkarex added the Bug (confirmed) 🐞 issues that are reproducible label May 13, 2025
@Alkarex Alkarex added this to the 1.27.0 milestone May 13, 2025
@Alkarex Alkarex merged commit 459ede2 into FreshRSS:edge May 13, 2025
1 check passed
@Alkarex Alkarex deleted the fix-sql-distinct branch May 13, 2025 20:28
@Alkarex Alkarex modified the milestones: 1.27.0, 1.26.3 May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug (confirmed) 🐞 issues that are reproducible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants