From: Mike Bayer Date: Mon, 13 Mar 2023 16:44:14 +0000 (-0400) Subject: - 2.0.6 X-Git-Tag: rel_2_0_6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8154afca626a4849d67f10098f72ca3922e00ab8;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - 2.0.6 --- diff --git a/doc/build/changelog/changelog_20.rst b/doc/build/changelog/changelog_20.rst index e133065f9a..c580d530cb 100644 --- a/doc/build/changelog/changelog_20.rst +++ b/doc/build/changelog/changelog_20.rst @@ -10,7 +10,83 @@ .. changelog:: :version: 2.0.6 - :include_notes_from: unreleased_20 + :released: March 13, 2023 + + .. change:: + :tags: bug, sql, regression + :tickets: 9461 + + Fixed regression where the fix for :ticket:`8098`, which was released in + the 1.4 series and provided a layer of concurrency-safe checks for the + lambda SQL API, included additional fixes in the patch that failed to be + applied to the main branch. These additional fixes have been applied. + + .. change:: + :tags: bug, typing + :tickets: 9451 + + Fixed typing issue where :meth:`.ColumnElement.cast` did not allow a + :class:`.TypeEngine` argument independent of the type of the + :class:`.ColumnElement` itself, which is the purpose of + :meth:`.ColumnElement.cast`. + + .. change:: + :tags: bug, orm + :tickets: 9460 + + Fixed bug where the "active history" feature was not fully + implemented for composite attributes, making it impossible to receive + events that included the "old" value. This seems to have been the case + with older SQLAlchemy versions as well, where "active_history" would + be propagated to the underlying column-based attributes, but an event + handler listening to the composite attribute itself would not be given + the "old" value being replaced, even if the composite() were set up + with active_history=True. + + Additionally, fixed a regression that's local to 2.0 which disallowed + active_history on composite from being assigned to the impl with + ``attr.impl.active_history=True``. + + + .. change:: + :tags: bug, oracle + :tickets: 9459 + + Fixed reflection bug where Oracle "name normalize" would not work correctly + for reflection of symbols that are in the "PUBLIC" schema, such as + synonyms, meaning the PUBLIC name could not be indicated as lower case on + the Python side for the :paramref:`_schema.Table.schema` argument. Using + uppercase "PUBLIC" would work, but would then lead to awkward SQL queries + including a quoted ``"PUBLIC"`` name as well as indexing the table under + uppercase "PUBLIC", which was inconsistent. + + .. change:: + :tags: bug, typing + + Fixed issues to allow typing tests to pass under Mypy 1.1.1. + + .. change:: + :tags: bug, sql + :tickets: 9440 + + Fixed regression where the :func:`_sql.select` construct would not be able + to render if it were given no columns and then used in the context of an + EXISTS, raising an internal exception instead. While an empty "SELECT" is + not typically valid SQL, in the context of EXISTS databases such as + PostgreSQL allow it, and in any case the condition now no longer raises + an internal exception. + + + .. change:: + :tags: bug, orm + :tickets: 9418 + + Fixed regression involving pickling of Python rows between the cython and + pure Python implementations of :class:`.Row`, which occurred as part of + refactoring code for version 2.0 with typing. A particular constant were + turned into a string based ``Enum`` for the pure Python version of + :class:`.Row` whereas the cython version continued to use an integer + constant, leading to deserialization failures. .. changelog:: :version: 2.0.5.post1 diff --git a/doc/build/changelog/unreleased_20/9423.rst b/doc/build/changelog/unreleased_20/9423.rst deleted file mode 100644 index 9d4e0ac3e9..0000000000 --- a/doc/build/changelog/unreleased_20/9423.rst +++ /dev/null @@ -1,10 +0,0 @@ -.. change:: - :tags: bug, orm - :tickets: 9418 - - Fixed regression involving pickling of Python rows between the cython and - pure Python implementations of :class:`.Row`, which occurred as part of - refactoring code for version 2.0 with typing. A particular constant were - turned into a string based ``Enum`` for the pure Python version of - :class:`.Row` whereas the cython version continued to use an integer - constant, leading to deserialization failures. diff --git a/doc/build/changelog/unreleased_20/9440.rst b/doc/build/changelog/unreleased_20/9440.rst deleted file mode 100644 index aa2ecd783e..0000000000 --- a/doc/build/changelog/unreleased_20/9440.rst +++ /dev/null @@ -1,11 +0,0 @@ -.. change:: - :tags: bug, sql - :tickets: 9440 - - Fixed regression where the :func:`_sql.select` construct would not be able - to render if it were given no columns and then used in the context of an - EXISTS, raising an internal exception instead. While an empty "SELECT" is - not typically valid SQL, in the context of EXISTS databases such as - PostgreSQL allow it, and in any case the condition now no longer raises - an internal exception. - diff --git a/doc/build/changelog/unreleased_20/9451.rst b/doc/build/changelog/unreleased_20/9451.rst deleted file mode 100644 index 5ed6b7e944..0000000000 --- a/doc/build/changelog/unreleased_20/9451.rst +++ /dev/null @@ -1,8 +0,0 @@ -.. change:: - :tags: bug, typing - :tickets: 9451 - - Fixed typing issue where :meth:`.ColumnElement.cast` did not allow a - :class:`.TypeEngine` argument independent of the type of the - :class:`.ColumnElement` itself, which is the purpose of - :meth:`.ColumnElement.cast`. diff --git a/doc/build/changelog/unreleased_20/9459.rst b/doc/build/changelog/unreleased_20/9459.rst deleted file mode 100644 index d4704cf013..0000000000 --- a/doc/build/changelog/unreleased_20/9459.rst +++ /dev/null @@ -1,11 +0,0 @@ -.. change:: - :tags: bug, oracle - :tickets: 9459 - - Fixed reflection bug where Oracle "name normalize" would not work correctly - for reflection of symbols that are in the "PUBLIC" schema, such as - synonyms, meaning the PUBLIC name could not be indicated as lower case on - the Python side for the :paramref:`_schema.Table.schema` argument. Using - uppercase "PUBLIC" would work, but would then lead to awkward SQL queries - including a quoted ``"PUBLIC"`` name as well as indexing the table under - uppercase "PUBLIC", which was inconsistent. diff --git a/doc/build/changelog/unreleased_20/9460.rst b/doc/build/changelog/unreleased_20/9460.rst deleted file mode 100644 index a2a7d9c6d8..0000000000 --- a/doc/build/changelog/unreleased_20/9460.rst +++ /dev/null @@ -1,17 +0,0 @@ -.. change:: - :tags: bug, orm - :tickets: 9460 - - Fixed bug where the "active history" feature was not fully - implemented for composite attributes, making it impossible to receive - events that included the "old" value. This seems to have been the case - with older SQLAlchemy versions as well, where "active_history" would - be propagated to the underlying column-based attributes, but an event - handler listening to the composite attribute itself would not be given - the "old" value being replaced, even if the composite() were set up - with active_history=True. - - Additionally, fixed a regression that's local to 2.0 which disallowed - active_history on composite from being assigned to the impl with - ``attr.impl.active_history=True``. - diff --git a/doc/build/changelog/unreleased_20/9461.rst b/doc/build/changelog/unreleased_20/9461.rst deleted file mode 100644 index 3397cfe274..0000000000 --- a/doc/build/changelog/unreleased_20/9461.rst +++ /dev/null @@ -1,8 +0,0 @@ -.. change:: - :tags: bug, sql, regression - :tickets: 9461 - - Fixed regression where the fix for :ticket:`8098`, which was released in - the 1.4 series and provided a layer of concurrency-safe checks for the - lambda SQL API, included additional fixes in the patch that failed to be - applied to the main branch. These additional fixes have been applied. diff --git a/doc/build/changelog/unreleased_20/mypy_111.rst b/doc/build/changelog/unreleased_20/mypy_111.rst deleted file mode 100644 index 22301ef310..0000000000 --- a/doc/build/changelog/unreleased_20/mypy_111.rst +++ /dev/null @@ -1,4 +0,0 @@ -.. change:: - :tags: bug, typing - - Fixed issues to allow typing tests to pass under Mypy 1.1.1. diff --git a/doc/build/conf.py b/doc/build/conf.py index 8da4ddf14d..4eeb7852eb 100644 --- a/doc/build/conf.py +++ b/doc/build/conf.py @@ -242,9 +242,9 @@ copyright = "2007-2023, the SQLAlchemy authors and contributors" # noqa # The short X.Y version. version = "2.0" # The full version, including alpha/beta/rc tags. -release = "2.0.5.post1" +release = "2.0.6" -release_date = "March 5, 2023" +release_date = "March 13, 2023" site_base = os.environ.get("RTD_SITE_BASE", "https://www.sqlalchemy.org") site_adapter_template = "docs_adapter.mako"