]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
changelog updates for 2.0.36
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 Oct 2024 19:19:44 +0000 (15:19 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 Oct 2024 19:23:41 +0000 (15:23 -0400)
Change-Id: Iffaa6c5556d7b41c8a7537333b7ea58d83ce4771
(cherry picked from commit 4ec37835a66192271171fbba3b6b178641902a18)

doc/build/changelog/unreleased_20/11317.rst
doc/build/changelog/unreleased_20/11912.rst
doc/build/changelog/unreleased_20/11917.rst
doc/build/changelog/unreleased_20/11923.rst
doc/build/changelog/unreleased_20/11961.rst
doc/build/changelog/unreleased_20/11965.rst
doc/build/changelog/unreleased_20/11975.rst
doc/build/changelog/unreleased_20/11994.rst
doc/build/changelog/unreleased_20/11995.rst

index e41a0733d2cae188afbfa274cd0523fea7387994..445012ea01d8aa0d11fde0ac814aae7740e551f8 100644 (file)
@@ -2,6 +2,7 @@
     :tags: bug, schema
     :tickets: 11317
 
-    Fixed a bug that caused a syntax error when a function was specified
-    to server_default when creating a column in MySQL or MariaDB.
-    Pull request courtesy of huuya.
+    Fixed bug where SQL functions passed to
+    :paramref:`_schema.Column.server_default` would not be rendered with the
+    particular form of parenthesization now required by newer versions of MySQL
+    and MariaDB. Pull request courtesy of huuya.
index c0814b6cba1cb789ff20bb7233ba6fccd6d1e198..a6bc1ae55d37639f07b4f184f880dcd3fa3db8f1 100644 (file)
@@ -3,5 +3,5 @@
     :tickets: 11912
 
     Fixed bug in ORM bulk update/delete where using RETURNING with bulk
-    update/delete in combination with populate existing would fail to
-    accommodate the populate_existing option.
+    update/delete in combination with ``populate_existing`` would fail to
+    accommodate the ``populate_existing`` option.
index 951b191605fd85c9235b705a5ab955b694c863cd..91702f011d7c529316d7f45f522caa7243647c28 100644 (file)
@@ -7,4 +7,4 @@
     :paramref:`.mapped_column.server_onupdate`, or :class:`.Computed` are now
     refreshed in ORM instances when running an ORM enabled UPDATE with WHERE
     criteria, even if the statement does not use RETURNING or
-    populate_existing.
+    ``populate_existing``.
index 5b5fbceee3105b365a0e3f9c49bb09f9d79f9bd6..fdd2d6d3c1648281be198a708cb229a8e3773e01 100644 (file)
@@ -2,5 +2,7 @@
     :tags: usecase, orm
     :tickets: 11923
 
-    Added the dataclass field ``hash`` parameter to the orm field-like methods,
-    like :meth:`_orn.mapped_column`, :meth:`_orm.relationship`, etc.
+    Added new parameter :paramref:`_orm.mapped_column.hash` to ORM constructs
+    such as :meth:`_orm.mapped_column`, :meth:`_orm.relationship`, etc.,
+    which is interpreted for ORM Native Dataclasses in the same way as other
+    dataclass-specific field parameters.
index c6ffceb0364707245a4a12370c605bc027e662b3..8aa862d04f9647a92966d740cbfc9701b07ec1c1 100644 (file)
@@ -3,5 +3,5 @@
     :tickets: 11961
 
     Fixed bug in reflection of table comments where unrelated text would be
-    returned if an entry in the pg_description table happened to share the
-    same oid (objoid) as the table being reflected.
\ No newline at end of file
+    returned if an entry in the ``pg_description`` table happened to share the
+    same oid (objoid) as the table being reflected.
index 1f9294c0d90b2304a7a4666a9e67e1fb7b758467..f8e4ce0ad13e02e7909888f1213a916f994bcf73 100644 (file)
@@ -2,8 +2,8 @@
     :tags: bug, orm
     :tickets: 11965
 
-    Fixed regression caused by fixes to joined eager loading in
-    :ticket:`11449`, where a particular joinedload case could not be asserted
-    correctly.   We now have an example of that case so the assertion has been
-    repaired to allow for it.
+    Fixed regression caused by fixes to joined eager loading in :ticket:`11449`
+    released in 2.0.31, where a particular joinedload case could not be
+    asserted correctly.   We now have an example of that case so the assertion
+    has been repaired to allow for it.
 
index 708a23aa0b3215b510a071baafe2b006ba2b9e9b..69e4bdc6b8781dd102e97e3fc6b1cbb66ee2e923 100644 (file)
@@ -2,6 +2,7 @@
     :tags: mysql, performance
     :tickets: 11975
 
-    Improved foreign keys reflection logic in MySQL 8+ to use a better
-    optimized query. The previous query could be quite slow in databases
-    with a large number of columns.
+    Improved a query used for the MySQL 8 backend when reflecting foreign keys
+    to be better optimized.   Previously, for a database that had millions of
+    columns across all tables, the query could be prohibitively slow; the query
+    has been reworked to take better advantage of existing indexes.
index efcb8e97b666dbf68c267734eba0aac788db8cad..ca599148c563bc884864820ea229f442812de73d 100644 (file)
@@ -1,6 +1,9 @@
 .. change::
-    :tags: postgresql, usecase
+    :tags: postgresql, bug
     :tickets: 11994
 
-    Render bind cast for ``JSON`` and ``JSONB`` datatype on every dialect.
-    Previously this was only enabled in a subset of dialects.
+    The :class:`.postgresql.JSON` and :class:`.postgresql.JSONB` datatypes will
+    now render a "bind cast" in all cases for all PostgreSQL backends,
+    including psycopg2, whereas previously it was only enabled for some
+    backends.   This allows greater accuracy in allowing the database server to
+    recognize when a string value is to be interpreted as JSON.
index a748a1c5dfa3d4f9e2abd858e0c0384f4690c5f0..4387b9cf7ea51549c56627808ba7c20127d7b2f1 100644 (file)
@@ -6,7 +6,7 @@
     loading by primary key and the primary key is NULL, skip loading" to take
     into account the current setting for the
     :paramref:`.orm.Mapper.allow_partial_pks` parameter. If this parameter is
-    False, then a composite PK value that has partial NULL elements should also
-    be skipped.   This can apply to some composite overlapping foreign key
+    ``False``, then a composite PK value that has partial NULL elements should
+    also be skipped.   This can apply to some composite overlapping foreign key
     configurations.