rel_1_4_36
版本发布时间: 2022-04-27 05:11:54
sqlalchemy/sqlalchemy最新发布版本:rel_2_0_36(2024-10-16 03:41:54)
1.4.36
Released: April 26, 2022
orm
-
[orm] [bug] [regression] Fixed regression where the change made for #7861, released in version 1.4.33, that brought the
Insert
construct to be partially recognized as an ORM-enabled statement did not properly transfer the correct mapper / mapped table state to theSession
, causing theSession.get_bind()
method to fail for aSession
that was bound to engines and/or connections using theSession.binds
parameter.References: #7936
orm declarative
-
[orm] [declarative] [bug] Modified the
DeclarativeMeta
metaclass to passcls.__dict__
into the declarative scanning process to look for attributes, rather than the separate dictionary passed to the type's__init__()
method. This allows user-defined base classes that add attributes within an__init_subclass__()
to work as expected, as__init_subclass__()
can only affect thecls.__dict__
itself and not the other dictionary. This is technically a regression from 1.3 where__dict__
was being used.References: #7900
engine
-
[engine] [bug] Fixed a memory leak in the C extensions which could occur when calling upon named members of
Row
when the member does not exist under Python 3; in particular this could occur during NumPy transformations when it attempts to call members such as.__array__
, but the issue was surrounding anyAttributeError
thrown by theRow
object. This issue does not apply to version 2.0 which has already transitioned to Cython. Thanks much to Sebastian Berg for identifying the problem.References: #7875
-
[engine] [bug] Added a warning regarding a bug which exists in the
Result.columns()
method when passing 0 for the index in conjunction with aResult
that will return a single ORM entity, which indicates that the current behavior ofResult.columns()
is broken in this case as theResult
object will yield scalar values and notRow
objects. The issue will be fixed in 2.0, which would be a backwards-incompatible change for code that relies on the current broken behavior. Code which wants to receive a collection of scalar values should use theResult.scalars()
method, which will return a newScalarResult
object that yields non-row scalar objects.References: #7953
schema
-
[schema] [bug] Fixed bug where
ForeignKeyConstraint
naming conventions using thereferred_column_0
naming convention key would not work if the foreign key constraint were set up as aForeignKey
object rather than an explicitForeignKeyConstraint
object. As this change makes use of a backport of some fixes from version 2.0, an additional little-known feature that has likely been broken for many years is also fixed which is that aForeignKey
object may refer to a referred table by name of the table alone without using a column name, if the name of the referent column is the same as that of the referred column.The
referred_column_0
naming convention key was previously not tested with theForeignKey
object, onlyForeignKeyConstraint
, and this bug reveals that the feature has never worked correctly unlessForeignKeyConstraint
is used for all FK constraints. This bug traces back to the original introduction of the feature introduced for #3989.References: #7958
asyncio
-
[asyncio] [bug] Repaired handling of
contextvar.ContextVar
objects inside of async adapted event handlers. Previously, values applied to aContextVar
would not be propagated in the specific case of calling upon awaitables inside of non-awaitable code.References: #7937
postgresql
-
[postgresql] [bug] Fixed bug in
ARRAY
datatype in combination withEnum
on PostgreSQL where using the.any()
or.all()
methods to render SQL ANY() or ALL(), given members of the Python enumeration as arguments, would produce a type adaptation failure on all drivers.References: #6515
-
[postgresql] [bug] Implemented
_postgresql.UUID.python_type
attribute for the PostgreSQL_postgresql.UUID
type object. The attribute will return eitherstr
oruuid.UUID
based on the_postgresql.UUID.as_uuid
parameter setting. Previously, this attribute was unimplemented. Pull request courtesy Alex Grönholm.References: #7943
-
[postgresql] [bug] Fixed an issue in the psycopg2 dialect when using the
create_engine.pool_pre_ping
parameter which would cause user-configuredAUTOCOMMIT
isolation level to be inadvertently reset by the "ping" handler.References: #7930
mysql
-
[mysql] [bug] [regression] Fixed a regression in the untested MySQL PyODBC dialect caused by the fix for #7518 in version 1.4.32 where an argument was being propagated incorrectly upon first connect, leading to a
TypeError
.References: #7871
tests
-
[tests] [bug] For third party dialects, repaired a missing requirement for the
SimpleUpdateDeleteTest
suite test which was not checking for a working "rowcount" function on the target dialect.References: #7919
1、 SQLAlchemy-1.4.36-cp27-cp27m-macosx_10_14_x86_64.whl 1.47MB
2、 SQLAlchemy-1.4.36-cp27-cp27m-manylinux_2_5_x86_64.manylinux1_x86_64.whl 1.51MB
3、 SQLAlchemy-1.4.36-cp27-cp27m-win32.whl 1.48MB
4、 SQLAlchemy-1.4.36-cp27-cp27m-win_amd64.whl 1.48MB
5、 SQLAlchemy-1.4.36-cp27-cp27mu-manylinux_2_5_x86_64.manylinux1_x86_64.whl 1.51MB
6、 SQLAlchemy-1.4.36-cp310-cp310-macosx_10_15_x86_64.whl 1.47MB
7、 SQLAlchemy-1.4.36-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl 1.52MB
10、 SQLAlchemy-1.4.36-cp310-cp310-win32.whl 1.48MB
11、 SQLAlchemy-1.4.36-cp310-cp310-win_amd64.whl 1.49MB
12、 SQLAlchemy-1.4.36-cp36-cp36m-macosx_10_14_x86_64.whl 1.47MB
13、 SQLAlchemy-1.4.36-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl 1.52MB
16、 SQLAlchemy-1.4.36-cp36-cp36m-win32.whl 1.48MB
17、 SQLAlchemy-1.4.36-cp36-cp36m-win_amd64.whl 1.49MB
18、 SQLAlchemy-1.4.36-cp37-cp37m-macosx_10_14_x86_64.whl 1.47MB
19、 SQLAlchemy-1.4.36-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl 1.52MB
22、 SQLAlchemy-1.4.36-cp37-cp37m-win32.whl 1.48MB
23、 SQLAlchemy-1.4.36-cp37-cp37m-win_amd64.whl 1.49MB
24、 SQLAlchemy-1.4.36-cp38-cp38-macosx_10_14_x86_64.whl 1.47MB
25、 SQLAlchemy-1.4.36-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl 1.52MB
28、 SQLAlchemy-1.4.36-cp38-cp38-win32.whl 1.48MB
29、 SQLAlchemy-1.4.36-cp38-cp38-win_amd64.whl 1.49MB
30、 SQLAlchemy-1.4.36-cp39-cp39-macosx_10_15_x86_64.whl 1.47MB
31、 SQLAlchemy-1.4.36-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl 1.52MB
34、 SQLAlchemy-1.4.36-cp39-cp39-win32.whl 1.48MB
35、 SQLAlchemy-1.4.36-cp39-cp39-win_amd64.whl 1.49MB