Sqlalchemy

Latest version: v2.0.30

Safety actively analyzes 629599 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 29 of 50

1.0.18

Not secure
:released: July 24, 2017

.. change::
:tags: bug, tests, py3k
:tickets: 4034
:versions: 1.0.18, 1.1.12, 1.2.0b2

Fixed issue in testing fixtures which was incompatible with a change
made as of Python 3.6.2 involving context managers.

.. change:: 3937
:tags: bug, oracle
:tickets: 3937
:versions: 1.1.7

A fix to cx_Oracle's WITH_UNICODE mode which was uncovered by the
fact that cx_Oracle 5.3 now seems to hardcode this flag on in
the build; an internal method that uses this mode wasn't using
the correct signature.


.. changelog::

1.0.17

Not secure
:released: January 17, 2017

.. change::
:tags: bug, py3k
:tickets: 3886
:versions: 1.1.5

Fixed Python 3.6 DeprecationWarnings related to escaped strings without
the 'r' modifier, and added test coverage for Python 3.6.

.. change::
:tags: bug, orm
:tickets: 3884
:versions: 1.1.5

Fixed bug involving joined eager loading against multiple entities
when polymorphic inheritance is also in use which would throw
"'NoneType' object has no attribute 'isa'". The issue was introduced
by the fix for :ticket:`3611`.

.. changelog::

1.0.16

Not secure
:released: November 15, 2016

.. change::
:tags: bug, orm
:tickets: 3849
:versions: 1.1.4

Fixed bug in :meth:`.Session.bulk_update_mappings` where an alternate-named
primary key attribute would not track properly into the UPDATE statement.

.. change::
:tags: bug, mssql
:tickets: 3810
:versions: 1.1.0

Changed the query used to get "default schema name", from one that
queries the database principals table to using the
"schema_name()" function, as issues have been reported that the
former system was unavailable on the Azure Data Warehouse edition.
It is hoped that this will finally work across all SQL Server
versions and authentication styles.

.. change::
:tags: bug, mssql
:tickets: 3814
:versions: 1.1.0

Updated the server version info scheme for pyodbc to use SQL Server
SERVERPROPERTY(), rather than relying upon pyodbc.SQL_DBMS_VER, which
continues to be unreliable particularly with FreeTDS.

.. change::
:tags: bug, orm
:tickets: 3800
:versions: 1.1.0

Fixed bug where joined eager loading would fail for a polymorphically-
loaded mapper, where the polymorphic_on was set to an un-mapped
expression such as a CASE expression.

.. change::
:tags: bug, orm
:tickets: 3798
:versions: 1.1.0

Fixed bug where the ArgumentError raised for an invalid bind
sent to a Session via :meth:`.Session.bind_mapper`,
:meth:`.Session.bind_table`,
or the constructor would fail to be correctly raised.

.. change::
:tags: bug, mssql
:tickets: 3791
:versions: 1.1.0

Added error code 20017 "unexpected EOF from the server" to the list of
disconnect exceptions that result in a connection pool reset. Pull
request courtesy Ken Robbins.

.. change::
:tags: bug, orm.declarative
:tickets: 3797
:versions: 1.1.0

Fixed bug where setting up a single-table inh subclass of a joined-table
subclass which included an extra column would corrupt the foreign keys
collection of the mapped table, thereby interfering with the
initialization of relationships.

.. change::
:tags: bug, orm
:tickets: 3781
:versions: 1.1.4

Fixed bug in :meth:`.Session.bulk_save` where an UPDATE would
not function correctly in conjunction with a mapping that
implements a version id counter.

.. 3778

.. change::
:tags: bug, orm
:tickets: 3778
:versions: 1.1.4

Fixed bug where the :attr:`_orm.Mapper.attrs`,
:attr:`_orm.Mapper.all_orm_descriptors` and other derived attributes would
fail to refresh when mapper properties or other ORM constructs were
added to the mapper/class after these accessors were first called.

.. change:: 3762
:tags: bug, mssql
:tickets: 3762
:versions: 1.1.4

Fixed bug in pyodbc dialect (as well as in the mostly non-working
adodbapi dialect) whereby a semicolon present in the password
or username fields could be interpreted as a separator for another
token; the values are now quoted when semicolons are present.

.. changelog::

1.0.15

Not secure
:released: September 1, 2016

.. change::
:tags: bug, mysql
:tickets: 3787
:versions: 1.1.0

Added support for parsing MySQL/Connector boolean and integer
arguments within the URL query string: connection_timeout,
connect_timeout, pool_size, get_warnings,
raise_on_warnings, raw, consume_results, ssl_verify_cert, force_ipv6,
pool_reset_session, compress, allow_local_infile, use_pure.

.. change::
:tags: bug, orm
:tickets: 3773, 3774
:versions: 1.1.0

Fixed bug in subquery eager loading where a subqueryload
of an "of_type()" object linked to a second subqueryload of a plain
mapped class, or a longer chain of several "of_type()" attributes,
would fail to link the joins correctly.

.. change::
:tags: bug, sql
:tickets: 3755
:versions: 1.1.0

Fixed bug in :class:`_schema.Table` where the internal method
``_reset_exported()`` would corrupt the state of the object. This
method is intended for selectable objects and is called by the ORM
in some cases; an erroneous mapper configuration would could lead the
ORM to call this on a :class:`_schema.Table` object.

.. change::
:tags: bug, ext
:tickets: 3743
:versions: 1.1.0b3

Fixed bug in ``sqlalchemy.ext.baked`` where the unbaking of a
subquery eager loader query would fail due to a variable scoping
issue, when multiple subquery loaders were involved. Pull request
courtesy Mark Hahnenberg.

.. changelog::

1.0.14

Not secure
:released: July 6, 2016

.. change::
:tags: bug, postgresql
:tickets: 3739
:versions: 1.1.0b3

Fixed bug whereby :class:`.TypeDecorator` and :class:`.Variant`
types were not deeply inspected enough by the PostgreSQL dialect
to determine if SMALLSERIAL or BIGSERIAL needed to be rendered
rather than SERIAL.

.. change::
:tags: bug, oracle
:tickets: 3741
:versions: 1.1.0b3

Fixed bug in :paramref:`.Select.with_for_update.of`, where the Oracle
"rownum" approach to LIMIT/OFFSET would fail to accommodate for the
expressions inside the "OF" clause, which must be stated at the topmost
level referring to expression within the subquery. The expressions are
now added to the subquery if needed.

.. change::
:tags: bug, sql
:tickets: 3735
:versions: 1.1.0b2

Fixed issue in SQL math negation operator where the type of the
expression would no longer be the numeric type of the original.
This would cause issues where the type determined result set
behaviors.

.. change::
:tags: bug, sql
:tickets: 3728
:versions: 1.1.0b2

Fixed bug whereby the ``__getstate__`` / ``__setstate__``
methods for sqlalchemy.util.Properties were
non-working due to the transition in the 1.0 series to ``__slots__``.
The issue potentially impacted some third-party applications.
Pull request courtesy Pieter Mulder.

.. change::
:tags: bug, sql
:tickets: 3724

:meth:`_expression.FromClause.count` is pending deprecation for 1.1. This function
makes use of an arbitrary column in the table and is not reliable;
for Core use, ``func.count()`` should be preferred.

.. change::
:tags: bug, sql
:tickets: 3722

Fixed bug in :class:`_expression.CTE` structure which would cause it to not
clone properly when a union was used, as is common in a recursive
CTE. The improper cloning would cause errors when the CTE is used
in various ORM contexts such as that of a :func:`.column_property`.

.. change::
:tags: bug, sql
:tickets: 3721

Fixed bug whereby :meth:`_schema.Table.tometadata` would make a duplicate
:class:`.UniqueConstraint` for each :class:`_schema.Column` object that
featured the ``unique=True`` parameter.

.. change::
:tags: bug, engine, postgresql
:tickets: 3716

Fixed bug in cross-schema foreign key reflection in conjunction
with the :paramref:`_schema.MetaData.schema` argument, where a referenced
table that is present in the "default" schema would fail since there
would be no way to indicate a :class:`_schema.Table` that has "blank" for
a schema. The special symbol :attr:`_schema.BLANK_SCHEMA` has been
added as an available value for :paramref:`_schema.Table.schema` and
:paramref:`.Sequence.schema`, indicating that the schema name
should be forced to be ``None`` even if :paramref:`_schema.MetaData.schema`
is specified.

.. change::
:tags: bug, examples
:tickets: 3704

Fixed a regression that occurred in the
examples/vertical/dictlike-polymorphic.py example which prevented it
from running.

.. changelog::

1.0.13

Not secure
:released: May 16, 2016

.. change::
:tags: bug, orm
:tickets: 3700

Fixed bug in "evaluate" strategy of :meth:`_query.Query.update` and
:meth:`_query.Query.delete` which would fail to accommodate a bound
parameter with a "callable" value, as which occurs when filtering
by a many-to-one equality expression along a relationship.

.. change::
:tags: bug, postgresql
:tickets: 3715

Added disconnect detection support for the error string
"SSL error: decryption failed or bad record mac". Pull
request courtesy Iuri de Silvio.

.. change::
:tags: bug, mssql
:tickets: 3711

Fixed bug where by ROW_NUMBER OVER clause applied for OFFSET
selects in SQL Server would inappropriately substitute a plain column
from the local statement that overlaps with a label name used by
the ORDER BY criteria of the statement.

.. change::
:tags: bug, orm
:tickets: 3710

Fixed bug whereby the event listeners used for backrefs could
be inadvertently applied multiple times, when using a deep class
inheritance hierarchy in conjunction with multiple mapper configuration
steps.

.. change::
:tags: bug, orm
:tickets: 3706

Fixed bug whereby passing a :func:`_expression.text` construct to the
:meth:`_query.Query.group_by` method would raise an error, instead
of interpreting the object as a SQL fragment.

.. change::
:tags: bug, oracle
:tickets: 3705

Fixed a bug in the cx_Oracle connect process that caused a TypeError
when the either the user, password or dsn was empty. This prevented
external authentication to Oracle databases, and prevented connecting
to the default dsn. The connect string oracle:// now logs into the
default dsn using the Operating System username, equivalent to
connecting using '/' with sqlplus.

.. change::
:tags: bug, oracle
:tickets: 3699

Fixed a bug in the result proxy used mainly by Oracle when binary and
other LOB types are in play, such that when query / statement caching
were used, the type-level result processors, notably that required by
the binary type itself but also any other processor, would become lost
after the first run of the statement due to it being removed from the
cached result metadata.

.. change::
:tags: bug, examples
:tickets: 3698

Changed the "directed graph" example to no longer consider
integer identifiers of nodes as significant; the "higher" / "lower"
references now allow mutual edges in both directions.

.. change::
:tags: bug, sql
:tickets: 3690

Fixed bug where when using ``case_sensitive=False`` with an
:class:`_engine.Engine`, the result set would fail to correctly accommodate
for duplicate column names in the result set, causing an error
when the statement is executed in 1.0, and preventing the
"ambiguous column" exception from functioning in 1.1.

.. change::
:tags: bug, sql
:tickets: 3682

Fixed bug where the negation of an EXISTS expression would not
be properly typed as boolean in the result, and also would fail to be
anonymously aliased in a SELECT list as is the case with a
non-negated EXISTS construct.

.. change::
:tags: bug, sql
:tickets: 3666

Fixed bug where "unconsumed column names" exception would fail to
be raised in the case where :meth:`_expression.Insert.values` were called
with a list of parameter mappings, instead of a single mapping
of parameters. Pull request courtesy Athena Yao.

.. change::
:tags: bug, orm
:tickets: 3663

Anonymous labeling is applied to a :attr:`.func` construct that is
passed to :func:`.column_property`, so that if the same attribute
is referred to as a column expression twice the names are de-duped,
thus avoiding "ambiguous column" errors. Previously, the
``.label(None)`` would need to be applied in order for the name
to be de-anonymized.

.. change::
:tags: bug, py3k
:tickets: 3660

Fixed bug in "to_list" conversion where a single bytes object
would be turned into a list of individual characters. This would
impact among other things using the :meth:`_query.Query.get` method
on a primary key that's a bytes object.

.. change::
:tags: bug, orm
:tickets: 3658

Fixed regression appearing in the 1.0 series in ORM loading where the
exception raised for an expected column missing would incorrectly
be a ``NoneType`` error, rather than the expected
:class:`.NoSuchColumnError`.

.. change::
:tags: bug, mssql, oracle
:tickets: 3657

Fixed regression appearing in the 1.0 series which would cause the Oracle
and SQL Server dialects to incorrectly account for result set columns
when these dialects would wrap a SELECT in a subquery in order to
provide LIMIT/OFFSET behavior, and the original SELECT statement
referred to the same column multiple times, such as a column and
a label of that same column. This issue is related
to :ticket:`3658` in that when the error occurred, it would also
cause a ``NoneType`` error, rather than reporting that it couldn't
locate a column.

.. changelog::

Page 29 of 50

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.