.. changelog::
:version: 1.2.13
- :include_notes_from: unreleased_12
+ :released: October 31, 2018
+
+ .. change::
+ :tags: bug, postgresql
+ :tickets: 4337
+
+ Added support for the :class:`.aggregate_order_by` function to receive
+ multiple ORDER BY elements, previously only a single element was accepted.
+
+
+ .. change::
+ :tags: bug, mysql
+ :tickets: 4348
+
+ Added word ``function`` to the list of reserved words for MySQL, which is
+ now a keyword in MySQL 8.0
+
+ .. change::
+ :tags: feature, sql
+ :versions: 1.3.0b1
+
+ 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::
+ :tags: bug, misc
+
+ Fixed issue where part of the utility language helper internals was passing
+ the wrong kind of argument to the Python ``__import__`` builtin as the list
+ of modules to be imported. The issue produced no symptoms within the core
+ library but could cause issues with external applications that redefine the
+ ``__import__`` builtin or otherwise instrument it. Pull request courtesy Joe
+ Urciuoli.
+
+ .. change::
+ :tags: bug, orm
+ :tickets: 4349
+
+ Fixed bug where "dynamic" loader needs to explicitly set the "secondary"
+ table in the FROM clause of the query, to suit the case where the secondary
+ is a join object that is otherwise not pulled into the query from its
+ columns alone.
+
+
+ .. change::
+ :tags: bug, orm, declarative
+ :tickets: 4350
+
+ Fixed regression caused by :ticket:`4326` in version 1.2.12 where using
+ :class:`.declared_attr` with a mixin in conjunction with
+ :func:`.orm.synonym` would fail to map the synonym properly to an inherited
+ subclass.
+
+ .. change::
+ :tags: bug, misc, py3k
+ :tickets: 4339
+
+ Fixed additional warnings generated by Python 3.7 due to changes in the
+ organization of the Python ``collections`` and ``collections.abc`` packages.
+ Previous ``collections`` warnings were fixed in version 1.2.11. Pull request
+ courtesy xtreak.
+
+ .. change::
+ :tags: bug, ext
+
+ Added missing ``.index()`` method to list-based association collections
+ in the association proxy extension.
+
+ .. change::
+ :tags: bug, mysql
+ :tickets: 4344
+
+ Added a workaround for a MySQL bug #88718 introduced in the 8.0 series,
+ where the reflection of a foreign key constraint is not reporting the
+ correct case sensitivity for the referred column, leading to errors during
+ use of the reflected constraint such as when using the automap extension.
+ The workaround emits an additional query to the information_schema tables in
+ order to retrieve the correct case sensitive name.
+
+ .. change::
+ :tags: bug, sql
+ :tickets: 4341
+
+ Fixed bug where the :paramref:`.Enum.create_constraint` flag on the
+ :class:`.Enum` datatype would not be propagated to copies of the type, which
+ affects use cases such as declarative mixins and abstract bases.
+
+ .. change::
+ :tags: bug, orm, declarative
+ :tickets: 4352
+
+ The column conflict resolution technique discussed at
+ :ref:`declarative_column_conflicts` is now functional for a :class:`.Column`
+ that is also a primary key column. Previously, a check for primary key
+ columns declared on a single-inheritance subclass would occur before the
+ column copy were allowed to pass.
+
.. changelog::
:version: 1.2.12