From: Mike Bayer Date: Thu, 17 Dec 2020 17:27:41 +0000 (-0500) Subject: - 1.3.21 X-Git-Tag: rel_1_3_21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5571401acb3f84c04642b7143aef71153c7ba422;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - 1.3.21 --- diff --git a/doc/build/changelog/changelog_13.rst b/doc/build/changelog/changelog_13.rst index 47f1471638..16dc6657af 100644 --- a/doc/build/changelog/changelog_13.rst +++ b/doc/build/changelog/changelog_13.rst @@ -12,7 +12,151 @@ .. changelog:: :version: 1.3.21 - :include_notes_from: unreleased_13 + :released: December 17, 2020 + + .. change:: + :tags: bug, orm + :tickets: 5774 + :versions: 1.4.0b2 + + Added a comprehensive check and an informative error message for the case + where a mapped class, or a string mapped class name, is passed to + :paramref:`_orm.relationship.secondary`. This is an extremely common error + which warrants a clear message. + + Additionally, added a new rule to the class registry resolution such that + with regards to the :paramref:`_orm.relationship.secondary` parameter, if a + mapped class and its table are of the identical string name, the + :class:`.Table` will be favored when resolving this parameter. In all + other cases, the class continues to be favored if a class and table + share the identical name. + + .. change:: + :tags: sqlite, usecase + :tickets: 5685 + + Added ``sqlite_with_rowid=False`` dialect keyword to enable creating + tables as ``CREATE TABLE … WITHOUT ROWID``. Patch courtesy Sean Anderson. + + .. change:: + :tags: bug, sql + :tickets: 5691 + + A warning is emmitted if a returning() method such as + :meth:`_sql.Insert.returning` is called multiple times, as this does not + yet support additive operation. Version 1.4 will support additive + operation for this. Additionally, any combination of the + :meth:`_sql.Insert.returning` and :meth:`_sql.ValuesBase.return_defaults` + methods now raises an error as these methods are mutually exclusive; + previously the operation would fail silently. + + + .. change:: + :tags: bug, mssql + :tickets: 5751 + + Fixed bug where a CREATE INDEX statement was rendered incorrectly when + both ``mssql-include`` and ``mssql_where`` were specified. Pull request + courtesy @Adiorz. + + .. change:: + :tags: bug, postgresql, mysql + :tickets: 5729 + :versions: 1.4.0b2 + + Fixed regression introduced in 1.3.2 for the PostgreSQL dialect, also + copied out to the MySQL dialect's feature in 1.3.18, where usage of a non + :class:`_schema.Table` construct such as :func:`_sql.text` as the argument + to :paramref:`_sql.Select.with_for_update.of` would fail to be accommodated + correctly within the PostgreSQL or MySQL compilers. + + + .. change:: + :tags: bug, mssql + :tickets: 5646 + + Added SQL Server code "01000" to the list of disconnect codes. + + + .. change:: + :tags: usecase, postgresql + :tickets: 5604 + :versions: 1.4.0b2 + + Added new parameter :paramref:`_postgresql.ExcludeConstraint.ops` to the + :class:`_postgresql.ExcludeConstraint` object, to support operator class + specification with this constraint. Pull request courtesy Alon Menczer. + + .. change:: + :tags: bug, mysql, reflection + :tickets: 5744 + :versions: 1.4.0b2 + + Fixed issue where reflecting a server default on MariaDB only that + contained a decimal point in the value would fail to be reflected + correctly, leading towards a reflected table that lacked any server + default. + + + .. change:: + :tags: bug, orm + :tickets: 5664 + + Fixed bug in :meth:`_query.Query.update` where objects in the + :class:`_ormsession.Session` that were already expired would be + unnecessarily SELECTed individually when they were refreshed by the + "evaluate"synchronize strategy. + + .. change:: + :tags: usecase, oracle + :tickets: 5755 + + Implemented support for the SERIALIZABLE isolation level for Oracle + databases, as well as a real implementation for + :meth:`_engine.Connection.get_isolation_level`. + + .. seealso:: + + :ref:`oracle_isolation_level` + + .. change:: + :tags: mysql, sql + :tickets: 5696 + + Added missing keywords to the ``RESERVED_WORDS`` list for the MySQL + dialect: ``action``, ``level``, ``mode``, ``status``, ``text``, ``time``. + Pull request courtesy Oscar Batori. + + .. change:: + :tags: bug, orm + :tickets: 5737 + :versions: 1.4.0b2 + + Fixed bug involving the ``restore_load_context`` option of ORM events such + as :meth:`_ormevent.InstanceEvents.load` such that the flag would not be + carried along to subclasses which were mapped after the event handler were + first established. + + + + .. change:: + :tags: bug, sql + :tickets: 5656 + + Fixed structural compiler issue where some constructs such as MySQL / + PostgreSQL "on conflict / on duplicate key" would rely upon the state of + the :class:`_sql.Compiler` object being fixed against their statement as + the top level statement, which would fail in cases where those statements + are branched from a different context, such as a DDL construct linked to a + SQL statement. + + + .. change:: + :tags: mssql, sqlite, reflection + :tickets: 5661 + + Fixed issue with composite primary key columns not being reported + in the correct order. Patch courtesy @fulpm. .. changelog:: :version: 1.3.20 diff --git a/doc/build/changelog/unreleased_13/5604.rst b/doc/build/changelog/unreleased_13/5604.rst deleted file mode 100644 index dd2b52bce0..0000000000 --- a/doc/build/changelog/unreleased_13/5604.rst +++ /dev/null @@ -1,8 +0,0 @@ -.. change:: - :tags: usecase, postgresql - :tickets: 5604 - :versions: 1.4.0b2 - - Added new parameter :paramref:`_postgresql.ExcludeConstraint.ops` to the - :class:`_postgresql.ExcludeConstraint` object, to support operator class - specification with this constraint. Pull request courtesy Alon Menczer. diff --git a/doc/build/changelog/unreleased_13/5646.rst b/doc/build/changelog/unreleased_13/5646.rst deleted file mode 100644 index a2ae68b4bd..0000000000 --- a/doc/build/changelog/unreleased_13/5646.rst +++ /dev/null @@ -1,6 +0,0 @@ -.. change:: - :tags: bug, mssql - :tickets: 5646 - - Added SQL Server code "01000" to the list of disconnect codes. - diff --git a/doc/build/changelog/unreleased_13/5656.rst b/doc/build/changelog/unreleased_13/5656.rst deleted file mode 100644 index cdec608424..0000000000 --- a/doc/build/changelog/unreleased_13/5656.rst +++ /dev/null @@ -1,11 +0,0 @@ -.. change:: - :tags: bug, sql - :tickets: 5656 - - Fixed structural compiler issue where some constructs such as MySQL / - PostgreSQL "on conflict / on duplicate key" would rely upon the state of - the :class:`_sql.Compiler` object being fixed against their statement as - the top level statement, which would fail in cases where those statements - are branched from a different context, such as a DDL construct linked to a - SQL statement. - diff --git a/doc/build/changelog/unreleased_13/5661.rst b/doc/build/changelog/unreleased_13/5661.rst deleted file mode 100644 index 042b6a4932..0000000000 --- a/doc/build/changelog/unreleased_13/5661.rst +++ /dev/null @@ -1,6 +0,0 @@ -.. change:: - :tags: mssql, sqlite, reflection - :tickets: 5661 - - Fixed issue with composite primary key columns not being reported - in the correct order. Patch courtesy @fulpm. diff --git a/doc/build/changelog/unreleased_13/5664.rst b/doc/build/changelog/unreleased_13/5664.rst deleted file mode 100644 index 2675b35001..0000000000 --- a/doc/build/changelog/unreleased_13/5664.rst +++ /dev/null @@ -1,8 +0,0 @@ -.. change:: - :tags: bug, orm - :tickets: 5664 - - Fixed bug in :meth:`_query.Query.update` where objects in the - :class:`_ormsession.Session` that were already expired would be - unnecessarily SELECTed individually when they were refreshed by the - "evaluate"synchronize strategy. \ No newline at end of file diff --git a/doc/build/changelog/unreleased_13/5685.rst b/doc/build/changelog/unreleased_13/5685.rst deleted file mode 100644 index 6f98cfa5de..0000000000 --- a/doc/build/changelog/unreleased_13/5685.rst +++ /dev/null @@ -1,6 +0,0 @@ -.. change:: - :tags: sqlite, usecase - :tickets: 5685 - - Added ``sqlite_with_rowid=False`` dialect keyword to enable creating - tables as ``CREATE TABLE … WITHOUT ROWID``. Patch courtesy Sean Anderson. diff --git a/doc/build/changelog/unreleased_13/5691.rst b/doc/build/changelog/unreleased_13/5691.rst deleted file mode 100644 index c3761837b4..0000000000 --- a/doc/build/changelog/unreleased_13/5691.rst +++ /dev/null @@ -1,12 +0,0 @@ -.. change:: - :tags: bug, sql - :tickets: 5691 - - A warning is emmitted if a returning() method such as - :meth:`_sql.Insert.returning` is called multiple times, as this does not - yet support additive operation. Version 1.4 will support additive - operation for this. Additionally, any combination of the - :meth:`_sql.Insert.returning` and :meth:`_sql.ValuesBase.return_defaults` - methods now raises an error as these methods are mutually exclusive; - previously the operation would fail silently. - diff --git a/doc/build/changelog/unreleased_13/5696.rst b/doc/build/changelog/unreleased_13/5696.rst deleted file mode 100644 index 125a910eee..0000000000 --- a/doc/build/changelog/unreleased_13/5696.rst +++ /dev/null @@ -1,7 +0,0 @@ -.. change:: - :tags: mysql, sql - :tickets: 5696 - - Added missing keywords to the ``RESERVED_WORDS`` list for the MySQL - dialect: ``action``, ``level``, ``mode``, ``status``, ``text``, ``time``. - Pull request courtesy Oscar Batori. diff --git a/doc/build/changelog/unreleased_13/5729.rst b/doc/build/changelog/unreleased_13/5729.rst deleted file mode 100644 index e95cfa8b2b..0000000000 --- a/doc/build/changelog/unreleased_13/5729.rst +++ /dev/null @@ -1,11 +0,0 @@ -.. change:: - :tags: bug, postgresql, mysql - :tickets: 5729 - :versions: 1.4.0b2 - - Fixed regression introduced in 1.3.2 for the PostgreSQL dialect, also - copied out to the MySQL dialect's feature in 1.3.18, where usage of a non - :class:`_schema.Table` construct such as :func:`_sql.text` as the argument - to :paramref:`_sql.Select.with_for_update.of` would fail to be accommodated - correctly within the PostgreSQL or MySQL compilers. - diff --git a/doc/build/changelog/unreleased_13/5737.rst b/doc/build/changelog/unreleased_13/5737.rst deleted file mode 100644 index 21bbe519b4..0000000000 --- a/doc/build/changelog/unreleased_13/5737.rst +++ /dev/null @@ -1,11 +0,0 @@ -.. change:: - :tags: bug, orm - :tickets: 5737 - :versions: 1.4.0b2 - - Fixed bug involving the ``restore_load_context`` option of ORM events such - as :meth:`_ormevent.InstanceEvents.load` such that the flag would not be - carried along to subclasses which were mapped after the event handler were - first established. - - diff --git a/doc/build/changelog/unreleased_13/5744.rst b/doc/build/changelog/unreleased_13/5744.rst deleted file mode 100644 index 7325279e84..0000000000 --- a/doc/build/changelog/unreleased_13/5744.rst +++ /dev/null @@ -1,10 +0,0 @@ -.. change:: - :tags: bug, mysql, reflection - :tickets: 5744 - :versions: 1.4.0b2 - - Fixed issue where reflecting a server default on MariaDB only that - contained a decimal point in the value would fail to be reflected - correctly, leading towards a reflected table that lacked any server - default. - diff --git a/doc/build/changelog/unreleased_13/5751.rst b/doc/build/changelog/unreleased_13/5751.rst deleted file mode 100644 index 44306ceb3d..0000000000 --- a/doc/build/changelog/unreleased_13/5751.rst +++ /dev/null @@ -1,7 +0,0 @@ -.. change:: - :tags: bug, mssql - :tickets: 5751 - - Fixed bug where a CREATE INDEX statement was rendered incorrectly when - both ``mssql-include`` and ``mssql_where`` were specified. Pull request - courtesy @Adiorz. diff --git a/doc/build/changelog/unreleased_13/5755.rst b/doc/build/changelog/unreleased_13/5755.rst deleted file mode 100644 index 6b529e8fc0..0000000000 --- a/doc/build/changelog/unreleased_13/5755.rst +++ /dev/null @@ -1,11 +0,0 @@ -.. change:: - :tags: usecase, oracle - :tickets: 5755 - - Implemented support for the SERIALIZABLE isolation level for Oracle - databases, as well as a real implementation for - :meth:`_engine.Connection.get_isolation_level`. - - .. seealso:: - - :ref:`oracle_isolation_level` \ No newline at end of file diff --git a/doc/build/changelog/unreleased_13/5774.rst b/doc/build/changelog/unreleased_13/5774.rst deleted file mode 100644 index f91028da28..0000000000 --- a/doc/build/changelog/unreleased_13/5774.rst +++ /dev/null @@ -1,16 +0,0 @@ -.. change:: - :tags: bug, orm - :tickets: 5774 - :versions: 1.4.0b2 - - Added a comprehensive check and an informative error message for the case - where a mapped class, or a string mapped class name, is passed to - :paramref:`_orm.relationship.secondary`. This is an extremely common error - which warrants a clear message. - - Additionally, added a new rule to the class registry resolution such that - with regards to the :paramref:`_orm.relationship.secondary` parameter, if a - mapped class and its table are of the identical string name, the - :class:`.Table` will be favored when resolving this parameter. In all - other cases, the class continues to be favored if a class and table - share the identical name. diff --git a/doc/build/conf.py b/doc/build/conf.py index 317f3d3f4e..bafa0b32c2 100644 --- a/doc/build/conf.py +++ b/doc/build/conf.py @@ -171,9 +171,9 @@ copyright = u"2007-2020, the SQLAlchemy authors and contributors" # noqa # The short X.Y version. version = "1.3" # The full version, including alpha/beta/rc tags. -release = "1.3.20" +release = "1.3.21" -release_date = "October 12, 2020" +release_date = "December 17, 2020" site_base = os.environ.get("RTD_SITE_BASE", "http://www.sqlalchemy.org") site_adapter_template = "docs_adapter.mako"