refactor: update warning to apply only to select distinct queries

This commit is contained in:
AarDG10 2026-01-14 18:33:40 +05:30
parent 157a657c1f
commit 50e675f009

View file

@ -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,