]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Allow dialects to customize group by clause compilation
authorSamuel Chou <sam.chou@windystudios.com>
Wed, 19 Sep 2018 17:30:24 +0000 (13:30 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Sep 2018 23:06:01 +0000 (19:06 -0400)
commitc9aab727c5bb8fffc9b9830a385524f8db3aac0c
treef831147c13ec8b56d1418c64e38427617a4a4878
parent911f73e72fb446c4114538051e665df343c8f9f2
Allow dialects to customize group by clause compilation

Refactored :class:`.SQLCompiler` to expose a
:meth:`.SQLCompiler.group_by_clause` method similar to the
:meth:`.SQLCompiler.order_by_clause` and :meth:`.SQLCompiler.limit_clause`
methods, which can be overridden by dialects to customize how GROUP BY
renders.  Pull request courtesy Samuel Chou.

Change-Id: I0a7238e55032558c27a0c56a72907c7b883456f1
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/474
(cherry picked from commit 33fccc486111fc6b41eab651cc7325c83099ad45)
doc/build/changelog/unreleased_12/pr474.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_compiler.py