rel_2_0_19
版本发布时间: 2023-07-15 21:06:54
sqlalchemy/sqlalchemy最新发布版本:rel_2_0_36(2024-10-16 03:41:54)
2.0.19
Released: July 15, 2023
orm
-
[orm] [bug] Fixed issue where setting a relationship collection directly, where an object in the new collection were already present, would not trigger a cascade event for that object, leading to it not being added to the
_orm.Session
if it were not already present. This is similar in nature to #6471 and is a more apparent issue due to the removal ofcascade_backrefs
in the 2.0 series. The_orm.AttributeEvents.append_wo_mutation()
event added as part of #6471 is now also emitted for existing members of a collection that are present in a bulk set of that same collection.References: #10089
-
[orm] [bug] Fixed issue where objects that were associated with an unloaded collection via backref, but were not merged into the
_orm.Session
due to the removal ofcascade_backrefs
in the 2.0 series, would not emit a warning that these objects were not being included in a flush, even though they were pending members of the collection; in other such cases, a warning is emitted when a collection being flushed contains non-attached objects which will be essentially discarded. The addition of the warning for backref-pending collection members establishes greater consistency with collections that may be present or non-present and possibly flushed or not flushed at different times based on different relationship loading strategies.References: #10090
-
[orm] [bug] [regression] Fixed additional regression caused by #9805 where more aggressive propagation of the "ORM" flag on statements could lead to an internal attribute error when embedding an ORM
Query
construct that nonetheless contained no ORM entities within a Core SQL statement, in this case ORM-enabled UPDATE and DELETE statements.References: #10098
engine
-
[engine] [bug] Renamed
_result.Row.t
and_result.Row.tuple()
to_result.Row._t
and_result.Row._tuple()
; this is to suit the policy that all methods and pre-defined attributes onRow
should be in the style of Python standard librarynamedtuple
where all fixed names have a leading underscore, to avoid name conflicts with existing column names. The previous method/attribute is now deprecated and will emit a deprecation warning.References: #10093
-
[engine] [bug] Added detection for non-string, non-
_engine.URL
objects to the_engine.make_url()
function, allowingArgumentError
to be thrown immediately, rather than causing failures later on. Special logic ensures that mock forms of_engine.URL
are allowed through. Pull request courtesy Grigoriev Semyon.References: #10079
postgresql
-
[postgresql] [bug] Fixed regression caused by improvements to PostgreSQL URL parsing in #10004 where "host" query string arguments that had colons in them, to support various third party proxy servers and/or dialects, would not parse correctly as these were evaluted as
host:port
combinations. Parsing has been updated to consider a colon as indicating ahost:port
value only if the hostname contains only alphanumeric characters with dots or dashes only (e.g. no slashes), followed by exactly one colon followed by an all-integer token of zero or more integers. In all other cases, the full string is taken as a host.References: #10069
-
[postgresql] [bug] Fixed issue where comparisons to the
_postgresql.CITEXT
datatype would cast the right side toVARCHAR
, leading to the right side not being interpreted as aCITEXT
datatype, for the asyncpg, psycopg3 and pg80000 dialects. This led to the_postgresql.CITEXT
type being essentially unusable for practical use; this is now fixed and the test suite has been corrected to properly assert that expressions are rendered correctly.References: #10096
1、 SQLAlchemy-2.0.19-cp310-cp310-macosx_10_9_x86_64.whl 1.9MB
2、 SQLAlchemy-2.0.19-cp310-cp310-macosx_11_0_arm64.whl 1.89MB
3、 SQLAlchemy-2.0.19-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl 2.59MB
4、 SQLAlchemy-2.0.19-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 2.6MB
5、 SQLAlchemy-2.0.19-cp310-cp310-musllinux_1_1_aarch64.whl 2.61MB
6、 SQLAlchemy-2.0.19-cp310-cp310-musllinux_1_1_x86_64.whl 2.61MB
7、 SQLAlchemy-2.0.19-cp310-cp310-win32.whl 1.88MB
8、 SQLAlchemy-2.0.19-cp310-cp310-win_amd64.whl 1.9MB
9、 SQLAlchemy-2.0.19-cp311-cp311-macosx_10_9_x86_64.whl 1.9MB
10、 SQLAlchemy-2.0.19-cp311-cp311-macosx_11_0_arm64.whl 1.89MB
11、 SQLAlchemy-2.0.19-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl 2.65MB
12、 SQLAlchemy-2.0.19-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 2.65MB
13、 SQLAlchemy-2.0.19-cp311-cp311-musllinux_1_1_aarch64.whl 2.65MB
14、 SQLAlchemy-2.0.19-cp311-cp311-musllinux_1_1_x86_64.whl 2.65MB
15、 SQLAlchemy-2.0.19-cp311-cp311-win32.whl 1.88MB
16、 SQLAlchemy-2.0.19-cp311-cp311-win_amd64.whl 1.9MB
17、 SQLAlchemy-2.0.19-cp37-cp37m-macosx_10_9_x86_64.whl 1.9MB
18、 SQLAlchemy-2.0.19-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl 2.56MB
19、 SQLAlchemy-2.0.19-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 2.56MB
20、 SQLAlchemy-2.0.19-cp37-cp37m-musllinux_1_1_aarch64.whl 2.58MB
21、 SQLAlchemy-2.0.19-cp37-cp37m-musllinux_1_1_x86_64.whl 2.57MB
22、 SQLAlchemy-2.0.19-cp37-cp37m-win32.whl 1.88MB
23、 SQLAlchemy-2.0.19-cp37-cp37m-win_amd64.whl 1.9MB
24、 SQLAlchemy-2.0.19-cp38-cp38-macosx_10_9_x86_64.whl 1.9MB
25、 SQLAlchemy-2.0.19-cp38-cp38-macosx_11_0_arm64.whl 1.89MB
26、 SQLAlchemy-2.0.19-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl 2.65MB
27、 SQLAlchemy-2.0.19-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 2.65MB
28、 SQLAlchemy-2.0.19-cp38-cp38-musllinux_1_1_aarch64.whl 2.7MB
29、 SQLAlchemy-2.0.19-cp38-cp38-musllinux_1_1_x86_64.whl 2.7MB
30、 SQLAlchemy-2.0.19-cp38-cp38-win32.whl 1.89MB
31、 SQLAlchemy-2.0.19-cp38-cp38-win_amd64.whl 1.9MB
32、 SQLAlchemy-2.0.19-cp39-cp39-macosx_10_9_x86_64.whl 1.91MB
33、 SQLAlchemy-2.0.19-cp39-cp39-macosx_11_0_arm64.whl 1.89MB
34、 SQLAlchemy-2.0.19-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl 2.64MB
35、 SQLAlchemy-2.0.19-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 2.63MB
36、 SQLAlchemy-2.0.19-cp39-cp39-musllinux_1_1_aarch64.whl 2.65MB
37、 SQLAlchemy-2.0.19-cp39-cp39-musllinux_1_1_x86_64.whl 2.65MB
38、 SQLAlchemy-2.0.19-cp39-cp39-win32.whl 1.89MB
39、 SQLAlchemy-2.0.19-cp39-cp39-win_amd64.whl 1.9MB
40、 SQLAlchemy-2.0.19-py3-none-any.whl 1.75MB