]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Added support for "set-aggregate" functions of the form
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 26 Aug 2015 20:58:13 +0000 (16:58 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 26 Aug 2015 21:19:27 +0000 (17:19 -0400)
commit7c4512cbeb1cf9e4e988e833589ddc6377b5e525
tree259ce5312bc3dfdc24da8314cae5846a09caf39f
parentcfae9c2eaf0020be8d8acbe104cb693e0fee0796
- Added support for "set-aggregate" functions of the form
``<function> WITHIN GROUP (ORDER BY <criteria>)``, using the
method :class:`.FunctionElement.within_group`.  A series of common
set-aggregate functions with return types derived from the set have
been added. This includes functions like :class:`.percentile_cont`,
:class:`.dense_rank` and others.
fixes #1370
- make sure we use func.name for all _literal_as_binds in functions.py
so we get consistent naming behavior for parameters.
12 files changed:
doc/build/changelog/changelog_11.rst
doc/build/changelog/migration_11.rst
doc/build/core/sqlelement.rst
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/sql/functions.py
lib/sqlalchemy/sql/util.py
test/dialect/postgresql/test_compiler.py
test/dialect/postgresql/test_types.py
test/sql/test_functions.py
test/sql/test_selectable.py