]> 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:04:46 +0000 (19:04 -0400)
commit33fccc486111fc6b41eab651cc7325c83099ad45
treeeb26f09702a4ce9ab2e2da9eb67de5903d23d4e7
parent95094d3789a558b310782c27a33b95dddb092dfc
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
doc/build/changelog/unreleased_12/pr474.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_compiler.py