From 50e675f009c3f543cd85aa54ccbd95bbb08d3dae Mon Sep 17 00:00:00 2001 From: AarDG10 Date: Wed, 14 Jan 2026 18:33:40 +0530 Subject: [PATCH] refactor: update warning to apply only to select distinct queries --- frappe/database/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/database/query.py b/frappe/database/query.py index db160ef1da..18ca931bda 100644 --- a/frappe/database/query.py +++ b/frappe/database/query.py @@ -328,7 +328,7 @@ class Engine: warnings.warn( ( "ORDER BY fields have been ignored because PostgreSQL requires them to " - "appear in the SELECT list when using DISTINCT or GROUP BY." + "appear in the SELECT list when using with DISTINCT" ), UserWarning, stacklevel=2,