[Python-modules-commits] [sqlalchemy] 01/06: Import sqlalchemy_1.1.11+ds1.orig.tar.gz
Piotr Ożarowski
piotr at moszumanska.debian.org
Tue Jun 20 18:44:31 UTC 2017
This is an automated email from the git hooks/post-receive script.
piotr pushed a commit to branch master
in repository sqlalchemy.
commit c9210bf88490b3cf31e71557e8812f426006e6df
Author: Piotr Ożarowski <piotr at debian.org>
Date: Tue Jun 20 20:27:45 2017 +0200
Import sqlalchemy_1.1.11+ds1.orig.tar.gz
---
PKG-INFO | 2 +-
doc/build/changelog/changelog_01.rst | 4 +-
doc/build/changelog/changelog_02.rst | 4 +-
doc/build/changelog/changelog_03.rst | 4 +-
doc/build/changelog/changelog_04.rst | 4 +-
doc/build/changelog/changelog_05.rst | 4 +-
doc/build/changelog/changelog_06.rst | 4 +-
doc/build/changelog/changelog_07.rst | 4 +-
doc/build/changelog/changelog_08.rst | 4 +-
doc/build/changelog/changelog_09.rst | 4 +-
doc/build/changelog/changelog_10.rst | 19 +-
doc/build/changelog/changelog_11.rst | 321 ++++-
doc/build/changelog/index.rst | 2 +-
doc/build/changelog/migration_06.rst | 4 +-
doc/build/changelog/migration_07.rst | 4 +-
doc/build/changelog/migration_08.rst | 18 +-
doc/build/changelog/migration_10.rst | 42 +-
doc/build/changelog/migration_11.rst | 69 +-
doc/build/conf.py | 4 +-
doc/build/core/api_basics.rst | 4 +-
doc/build/core/connections.rst | 8 +-
doc/build/core/constraints.rst | 15 +-
doc/build/core/custom_types.rst | 2 +-
doc/build/core/ddl.rst | 2 +-
doc/build/core/defaults.rst | 224 ++--
doc/build/core/engines.rst | 6 +-
doc/build/core/event.rst | 4 +-
doc/build/core/events.rst | 8 +-
doc/build/core/interfaces.rst | 2 +-
doc/build/core/metadata.rst | 2 +-
doc/build/core/pooling.rst | 10 +-
doc/build/core/reflection.rst | 4 +-
doc/build/core/tutorial.rst | 30 +-
doc/build/core/type_api.rst | 2 +-
doc/build/core/type_basics.rst | 4 +-
doc/build/dialects/index.rst | 2 +-
doc/build/dialects/mssql.rst | 43 +-
doc/build/dialects/mysql.rst | 16 +-
doc/build/dialects/oracle.rst | 6 +-
doc/build/dialects/postgresql.rst | 4 +-
doc/build/dialects/sqlite.rst | 2 +-
doc/build/dialects/sybase.rst | 6 +-
doc/build/faq/connections.rst | 8 +-
doc/build/faq/index.rst | 4 +-
doc/build/faq/metadata_schema.rst | 10 +-
doc/build/faq/ormconfiguration.rst | 10 +-
doc/build/faq/performance.rst | 52 +-
doc/build/faq/sessions.rst | 8 +-
doc/build/faq/sqlexpressions.rst | 2 +-
doc/build/orm/backref.rst | 4 +-
doc/build/orm/basic_relationships.rst | 10 +-
doc/build/orm/collections.rst | 18 +-
doc/build/orm/composites.rst | 2 +-
doc/build/orm/constructors.rst | 2 +-
doc/build/orm/contextual.rst | 4 +-
doc/build/orm/deprecated.rst | 8 +-
doc/build/orm/events.rst | 6 +-
doc/build/orm/examples.rst | 28 +-
doc/build/orm/extending.rst | 10 +-
doc/build/orm/extensions/associationproxy.rst | 4 +-
doc/build/orm/extensions/declarative/api.rst | 2 +-
doc/build/orm/extensions/declarative/basic_use.rst | 2 +-
doc/build/orm/extensions/declarative/mixins.rst | 8 +-
.../orm/extensions/declarative/table_config.rst | 2 +-
doc/build/orm/extensions/indexable.rst | 2 +-
doc/build/orm/extensions/instrumentation.rst | 2 +-
doc/build/orm/extensions/mutable.rst | 14 +-
doc/build/orm/index.rst | 2 +-
doc/build/orm/inheritance.rst | 1303 +++++++++-----------
doc/build/orm/inheritance_loading.rst | 660 ++++++++++
doc/build/orm/join_conditions.rst | 12 +-
doc/build/orm/loading_columns.rst | 8 +-
doc/build/orm/loading_objects.rst | 5 +-
doc/build/orm/loading_relationships.rst | 886 +++++++++----
doc/build/orm/mapped_attributes.rst | 2 +-
doc/build/orm/mapped_sql_expr.rst | 4 +-
doc/build/orm/mapping_columns.rst | 2 +-
doc/build/orm/nonstandard_mappings.rst | 2 +-
doc/build/orm/persistence_techniques.rst | 4 +-
doc/build/orm/query.rst | 6 +-
doc/build/orm/relationship_persistence.rst | 2 +-
doc/build/orm/self_referential.rst | 6 +-
doc/build/orm/session_api.rst | 10 +-
doc/build/orm/session_basics.rst | 20 +-
doc/build/orm/session_events.rst | 12 +-
doc/build/orm/session_state_management.rst | 2 +-
doc/build/orm/session_transaction.rst | 17 +-
doc/build/orm/tutorial.rst | 10 +-
doc/build/orm/versioning.rst | 10 +-
doc/build/requirements.txt | 2 +-
examples/adjacency_list/__init__.py | 1 -
examples/adjacency_list/adjacency_list.py | 59 +-
examples/association/__init__.py | 2 +-
examples/association/basic_association.py | 16 +-
examples/association/dict_of_sets_with_default.py | 13 +-
examples/association/proxied_association.py | 22 +-
examples/inheritance/__init__.py | 4 +-
examples/inheritance/concrete.py | 193 ++-
examples/inheritance/joined.py | 111 +-
examples/inheritance/single.py | 199 +--
lib/sqlalchemy/__init__.py | 2 +-
lib/sqlalchemy/dialects/mssql/base.py | 63 +-
lib/sqlalchemy/dialects/mysql/base.py | 93 +-
lib/sqlalchemy/dialects/oracle/base.py | 2 +-
lib/sqlalchemy/dialects/oracle/cx_oracle.py | 111 +-
lib/sqlalchemy/dialects/postgresql/base.py | 51 +-
lib/sqlalchemy/dialects/sqlite/base.py | 14 +-
lib/sqlalchemy/engine/base.py | 19 +-
lib/sqlalchemy/engine/default.py | 8 +-
lib/sqlalchemy/engine/result.py | 7 +-
lib/sqlalchemy/ext/automap.py | 4 +-
lib/sqlalchemy/ext/baked.py | 2 +-
lib/sqlalchemy/ext/declarative/base.py | 8 +-
lib/sqlalchemy/ext/mutable.py | 21 +-
lib/sqlalchemy/orm/exc.py | 2 +-
lib/sqlalchemy/orm/mapper.py | 14 +-
lib/sqlalchemy/orm/query.py | 118 +-
lib/sqlalchemy/orm/relationships.py | 15 +-
lib/sqlalchemy/orm/session.py | 60 +-
lib/sqlalchemy/orm/strategies.py | 27 +-
lib/sqlalchemy/orm/strategy_options.py | 157 ++-
lib/sqlalchemy/orm/util.py | 10 +-
lib/sqlalchemy/sql/annotation.py | 7 +
lib/sqlalchemy/sql/compiler.py | 8 +-
lib/sqlalchemy/sql/elements.py | 10 +-
lib/sqlalchemy/sql/schema.py | 121 +-
lib/sqlalchemy/sql/selectable.py | 38 +-
lib/sqlalchemy/sql/sqltypes.py | 87 +-
lib/sqlalchemy/sql/type_api.py | 28 +-
lib/sqlalchemy/testing/assertions.py | 9 +-
lib/sqlalchemy/testing/engines.py | 3 +
lib/sqlalchemy/testing/provision.py | 6 +
lib/sqlalchemy/util/langhelpers.py | 18 +-
setup.cfg | 3 +-
test/aaa_profiling/test_memusage.py | 50 +-
test/dialect/mssql/test_reflection.py | 34 +-
test/dialect/mysql/test_compiler.py | 44 +-
test/dialect/mysql/test_dialect.py | 101 +-
test/dialect/postgresql/test_compiler.py | 26 +
test/dialect/postgresql/test_dialect.py | 16 +-
test/dialect/postgresql/test_on_conflict.py | 29 +
test/dialect/postgresql/test_types.py | 116 +-
test/dialect/test_oracle.py | 50 +-
test/engine/test_execute.py | 22 +-
test/engine/test_reconnect.py | 61 +-
test/ext/test_baked.py | 28 +
test/ext/test_mutable.py | 49 +-
test/orm/inheritance/_poly_fixtures.py | 4 +
test/orm/test_cascade.py | 139 +++
test/orm/test_froms.py | 25 +
test/orm/test_options.py | 51 +-
test/orm/test_subquery_relations.py | 91 +-
test/orm/test_unitofwork.py | 45 +-
test/requirements.py | 12 +
test/sql/test_compiler.py | 46 +-
test/sql/test_generative.py | 10 +
test/sql/test_insert_exec.py | 2 +-
test/sql/test_metadata.py | 69 +-
test/sql/test_resultset.py | 44 +
test/sql/test_types.py | 136 +-
tox.ini | 6 +-
161 files changed, 5149 insertions(+), 2059 deletions(-)
diff --git a/PKG-INFO b/PKG-INFO
index d6362ea..a48dfb7 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: SQLAlchemy
-Version: 1.1.6
+Version: 1.1.11
Summary: Database Abstraction Library
Home-page: http://www.sqlalchemy.org
Author: Mike Bayer
diff --git a/doc/build/changelog/changelog_01.rst b/doc/build/changelog/changelog_01.rst
index b0d95d4..d2878f6 100644
--- a/doc/build/changelog/changelog_01.rst
+++ b/doc/build/changelog/changelog_01.rst
@@ -1,7 +1,7 @@
-==============
+=============
0.1 Changelog
-==============
+=============
.. changelog::
diff --git a/doc/build/changelog/changelog_02.rst b/doc/build/changelog/changelog_02.rst
index 44b77b6..ef389f6 100644
--- a/doc/build/changelog/changelog_02.rst
+++ b/doc/build/changelog/changelog_02.rst
@@ -1,7 +1,7 @@
-==============
+=============
0.2 Changelog
-==============
+=============
.. changelog::
diff --git a/doc/build/changelog/changelog_03.rst b/doc/build/changelog/changelog_03.rst
index 349367c..27eda47 100644
--- a/doc/build/changelog/changelog_03.rst
+++ b/doc/build/changelog/changelog_03.rst
@@ -1,7 +1,7 @@
-==============
+=============
0.3 Changelog
-==============
+=============
.. changelog::
diff --git a/doc/build/changelog/changelog_04.rst b/doc/build/changelog/changelog_04.rst
index 1bd4987..7dcfa82 100644
--- a/doc/build/changelog/changelog_04.rst
+++ b/doc/build/changelog/changelog_04.rst
@@ -1,7 +1,7 @@
-==============
+=============
0.4 Changelog
-==============
+=============
.. changelog::
diff --git a/doc/build/changelog/changelog_05.rst b/doc/build/changelog/changelog_05.rst
index 5bcfd5f..172caaa 100644
--- a/doc/build/changelog/changelog_05.rst
+++ b/doc/build/changelog/changelog_05.rst
@@ -1,7 +1,7 @@
-==============
+=============
0.5 Changelog
-==============
+=============
.. changelog::
diff --git a/doc/build/changelog/changelog_06.rst b/doc/build/changelog/changelog_06.rst
index d1c7fe5..1a3664f 100644
--- a/doc/build/changelog/changelog_06.rst
+++ b/doc/build/changelog/changelog_06.rst
@@ -1,7 +1,7 @@
-==============
+=============
0.6 Changelog
-==============
+=============
.. changelog::
diff --git a/doc/build/changelog/changelog_07.rst b/doc/build/changelog/changelog_07.rst
index a77945f..2b7654e 100644
--- a/doc/build/changelog/changelog_07.rst
+++ b/doc/build/changelog/changelog_07.rst
@@ -1,7 +1,7 @@
-==============
+=============
0.7 Changelog
-==============
+=============
.. changelog::
:version: 0.7.11
diff --git a/doc/build/changelog/changelog_08.rst b/doc/build/changelog/changelog_08.rst
index 6eb5830..548bc43 100644
--- a/doc/build/changelog/changelog_08.rst
+++ b/doc/build/changelog/changelog_08.rst
@@ -1,7 +1,7 @@
-==============
+=============
0.8 Changelog
-==============
+=============
.. changelog_imports::
diff --git a/doc/build/changelog/changelog_09.rst b/doc/build/changelog/changelog_09.rst
index c912387..159c5ac 100644
--- a/doc/build/changelog/changelog_09.rst
+++ b/doc/build/changelog/changelog_09.rst
@@ -1,7 +1,7 @@
-==============
+=============
0.9 Changelog
-==============
+=============
.. changelog_imports::
diff --git a/doc/build/changelog/changelog_10.rst b/doc/build/changelog/changelog_10.rst
index c33b43a..d282fa3 100644
--- a/doc/build/changelog/changelog_10.rst
+++ b/doc/build/changelog/changelog_10.rst
@@ -1,8 +1,8 @@
-==============
+=============
1.0 Changelog
-==============
+=============
.. changelog_imports::
@@ -15,6 +15,21 @@
.. include:: changelog_07.rst
:start-line: 5
+
+.. changelog::
+ :version: 1.0.18
+
+ .. 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::
:version: 1.0.17
:released: January 17, 2017
diff --git a/doc/build/changelog/changelog_11.rst b/doc/build/changelog/changelog_11.rst
index 4083dbb..0abf4fb 100644
--- a/doc/build/changelog/changelog_11.rst
+++ b/doc/build/changelog/changelog_11.rst
@@ -1,8 +1,8 @@
-==============
+=============
1.1 Changelog
-==============
+=============
.. changelog_imports::
@@ -19,6 +19,323 @@
:start-line: 5
.. changelog::
+ :version: 1.1.11
+ :released: Monday, June 19, 2017
+
+ .. change:: 4011
+ :tags: bug, orm
+ :tickets: 4011
+ :versions: 1.2.0b1
+
+ Fixed issue with subquery eagerloading which continues on from
+ the series of issues fixed in :ticket:`2699`, :ticket:`3106`,
+ :ticket:`3893` involving that the "subquery" contains the correct
+ FROM clause when beginning from a joined inheritance subclass
+ and then subquery eager loading onto a relationship from
+ the base class, while the query also includes criteria against
+ the subclass. The fix in the previous tickets did not accommodate
+ for additional subqueryload operations loading more deeply from
+ the first level, so the fix has been further generalized.
+
+ .. change:: 4012
+ :tags: bug, sql
+ :tickets: 4012
+ :versions: 1.2.0b1
+
+ Fixed AttributeError which would occur in :class:`.WithinGroup`
+ construct during an iteration of the structure.
+
+ .. change:: 4005
+ :tags: bug, postgresql
+ :tickets: 4005
+ :versions: 1.2.0b1
+
+ Continuing with the fix that correctly handles Postgresql
+ version string "10devel" released in 1.1.8, an additional regexp
+ bump to handle version strings of the form "10beta1". While
+ Postgresql now offers better ways to get this information, we
+ are sticking w/ the regexp at least through 1.1.x for the least
+ amount of risk to compatibility w/ older or alternate Postgresql
+ databases.
+
+ .. change:: 4006
+ :tags: bug, postgresql
+ :tickets: 4006
+ :versions: 1.2.0b1
+
+ Fixed bug where using :class:`.ARRAY` with a string type that
+ features a collation would fail to produce the correct syntax
+ within CREATE TABLE.
+
+ .. change:: 4007
+ :tags: bug, mysql
+ :tickets: 4007
+ :versions: 1.2.0b1
+
+ MySQL 5.7 has introduced permission limiting for the "SHOW VARIABLES"
+ command; the MySQL dialect will now handle when SHOW returns no
+ row, in particular for the initial fetch of SQL_MODE, and will
+ emit a warning that user permissions should be modified to allow the
+ row to be present.
+
+ .. change:: 3994
+ :tags: bug, mssql
+ :tickets: 3994
+
+ Fixed bug where SQL Server transaction isolation must be fetched
+ from a different view when using Azure data warehouse, the query
+ is now attempted against both views and then a NotImplemented
+ is raised unconditionally if failure continues to provide the
+ best resiliency against future arbitrary API changes in new
+ SQL Server versions.
+
+ .. change:: 3997
+ :tags: bug, oracle
+ :tickets: 3997
+ :versions: 1.2.0b1
+
+ Support for two-phase transactions has been removed entirely for
+ cx_Oracle when version 6.0b1 or later of the DBAPI is in use. The two-
+ phase feature historically has never been usable under cx_Oracle 5.x in
+ any case, and cx_Oracle 6.x has removed the connection-level "twophase"
+ flag upon which this feature relied.
+
+ .. change:: 3973
+ :tags: bug, mssql
+ :tickets: 3973
+ :versions: 1.2.0b1
+
+ Added a placeholder type :class:`.mssql.XML` to the SQL Server
+ dialect, so that a reflected table which includes this type can
+ be re-rendered as a CREATE TABLE. The type has no special round-trip
+ behavior nor does it currently support additional qualifying
+ arguments.
+
+.. changelog::
+ :version: 1.1.10
+ :released: Friday, May 19, 2017
+
+ .. change:: 3986
+ :tags: bug, orm
+ :versions: 1.2.0b1
+ :tickets: 3986
+
+ Fixed bug where a cascade such as "delete-orphan" (but others as well)
+ would fail to locate an object linked to a relationship that itself
+ is local to a subclass in an inheritance relationship, thus causing
+ the operation to not take place.
+
+ .. change:: 3975
+ :tags: bug, oracle
+ :versions: 1.2.0b1
+ :tickets: 3975
+
+ Fixed bug in cx_Oracle dialect where version string parsing would
+ fail for cx_Oracle version 6.0b1 due to the "b" character. Version
+ string parsing is now via a regexp rather than a simple split.
+
+ .. change:: 3949
+ :tags: bug, schema
+ :versions: 1.2.0b1
+ :tickets: 3949
+
+ An :class:`.ArgumentError` is now raised if a
+ :class:`.ForeignKeyConstraint` object is created with a mismatched
+ number of "local" and "remote" columns, which otherwise causes the
+ internal state of the constraint to be incorrect. Note that this
+ also impacts the condition where a dialect's reflection process
+ produces a mismatched set of columns for a foreign key constraint.
+
+ .. change:: 3980
+ :tags: bug, ext
+ :versions: 1.2.0b1
+ :tickets: 3980
+
+ Protected against testing "None" as a class in the case where
+ declarative classes are being garbage collected and new
+ automap prepare() operations are taking place concurrently, very
+ infrequently hitting a weakref that has not been fully acted upon
+ after gc.
+
+ .. change::
+ :tags: bug, postgresql
+ :versions: 1.2.0b1
+
+ Added "autocommit" support for GRANT, REVOKE keywords. Pull request
+ courtesy Jacob Hayes.
+
+ .. change:: 3966
+ :tags: bug, mysql
+ :versions: 1.2.0b1
+ :tickets: 3966
+
+ Removed an ancient and unnecessary intercept of the UTC_TIMESTAMP
+ MySQL function, which was getting in the way of using it with a
+ parameter.
+
+ .. change:: 3961
+ :tags: bug, mysql
+ :versions: 1.2.0b1
+ :tickets: 3961
+
+ Fixed bug in MySQL dialect regarding rendering of table options in
+ conjunction with PARTITION options when rendering CREATE TABLE.
+ The PARTITION related options need to follow the table options,
+ whereas previously this ordering was not enforced.
+
+
+.. changelog::
+ :version: 1.1.9
+ :released: April 4, 2017
+
+ .. change:: 3956
+ :tags: bug, ext
+ :tickets: 3956
+
+ Fixed regression released in 1.1.8 due to :ticket:`3950` where the
+ deeper search for information about column types in the case of a
+ "schema type" or a :class:`.TypeDecorator` would produce an attribute
+ error if the mapping also contained a :obj:`.column_property`.
+
+ .. change:: 3952
+ :tags: bug, sql
+ :versions: 1.2.0b1
+ :tickets: 3952
+
+ Fixed regression released in 1.1.5 due to :ticket:`3859` where
+ adjustments to the "right-hand-side" evaluation of an expression
+ based on :class:`.Variant` to honor the underlying type's
+ "right-hand-side" rules caused the :class:`.Variant` type
+ to be inappropriately lost, in those cases when we *do* want the
+ left-hand side type to be transferred directly to the right hand side
+ so that bind-level rules can be applied to the expression's argument.
+
+ .. change:: 3955
+ :tags: bug, sql, postgresql
+ :versions: 1.2.0b1
+ :tickets: 3955
+
+ Changed the mechanics of :class:`.ResultProxy` to unconditionally
+ delay the "autoclose" step until the :class:`.Connection` is done
+ with the object; in the case where Postgresql ON CONFLICT with
+ RETURNING returns no rows, autoclose was occurring in this previously
+ non-existent use case, causing the usual autocommit behavior that
+ occurs unconditionally upon INSERT/UPDATE/DELETE to fail.
+
+.. changelog::
+ :version: 1.1.8
+ :released: March 31, 2017
+
+ .. change:: 3950
+ :tags: bug, ext
+ :versions: 1.2.0b1
+ :tickets: 3950
+
+ Fixed bug in :mod:`sqlalchemy.ext.mutable` where the
+ :meth:`.Mutable.as_mutable` method would not track a type that had
+ been copied using :meth:`.TypeEngine.copy`. This became more of
+ a regression in 1.1 compared to 1.0 because the :class:`.TypeDecorator`
+ class is now a subclass of :class:`.SchemaEventTarget`, which among
+ other things indicates to the parent :class:`.Column` that the type
+ should be copied when the :class:`.Column` is. These copies are
+ common when using declarative with mixins or abstract classes.
+
+ .. change::
+ :tags: bug, ext
+ :versions: 1.2.0b1
+
+ Added support for bound parameters, e.g. those normally set up
+ via :meth:`.Query.params`, to the :meth:`.baked.Result.count`
+ method. Previously, support for parameters were omitted. Pull request
+ courtesy Pat Deegan.
+
+ .. change::
+ :tags: bug, postgresql
+ :versions: 1.2.0b1
+
+ Added support for parsing the Postgresql version string for
+ a development version like "PostgreSQL 10devel". Pull request
+ courtesy Sean McCully.
+
+.. changelog::
+ :version: 1.1.7
+ :released: March 27, 2017
+
+ .. change::
+ :tags: feature, orm
+ :tickets: 3933
+ :versions: 1.2.0b1
+
+ An :func:`.aliased()` construct can now be passed to the
+ :meth:`.Query.select_entity_from` method. Entities will be pulled
+ from the selectable represented by the :func:`.aliased` construct.
+ This allows special options for :func:`.aliased` such as
+ :paramref:`.aliased.adapt_on_names` to be used in conjunction with
+ :meth:`.Query.select_entity_from`.
+
+ .. change::
+ :tags: bug, engine
+ :tickets: 3946
+ :versions: 1.2.0b1
+
+ Added an exception handler that will warn for the "cause" exception on
+ Py2K when the "autorollback" feature of :class:`.Connection` itself
+ raises an exception. In Py3K, the two exceptions are naturally reported
+ by the interpreter as one occurring during the handling of the other.
+ This is continuing with the series of changes for rollback failure
+ handling that were last visited as part of :ticket:`2696` in 1.0.12.
+
+ .. change::
+ :tags: bug, orm
+ :tickets: 3947
+ :versions: 1.2.0b1
+
+ Fixed a race condition which could occur under threaded environments
+ as a result of the caching added via :ticket:`3915`. An internal
+ collection of ``Column`` objects could be regenerated on an alias
+ object inappropriately, confusing a joined eager loader when it
+ attempts to render SQL and collect results and resulting in an
+ attribute error. The collection is now generated up front before
+ the alias object is cached and shared among threads.
+
+ .. change::
+ :tags: bug, sql, postgresql
+ :tickets: 2892
+
+ Added support for the :class:`.Variant` and the :class:`.SchemaType`
+ objects to be compatible with each other. That is, a variant
+ can be created against a type like :class:`.Enum`, and the instructions
+ to create constraints and/or database-specific type objects will
+ propagate correctly as per the variant's dialect mapping.
+
+ .. change::
+ :tags: bug, sql
+ :tickets: 3931
+
+ Fixed bug in compiler where the string identifier of a savepoint would
+ be cached in the identifier quoting dictionary; as these identifiers
+ are arbitrary, a small memory leak could occur if a single
+ :class:`.Connection` had an unbounded number of savepoints used,
+ as well as if the savepoint clause constructs were used directly
+ with an unbounded umber of savepoint names. The memory leak does
+ **not** impact the vast majority of cases as normally the
+ :class:`.Connection`, which renders savepoint names with a simple
+ counter starting at "1", is used on a per-transaction or
+ per-fixed-number-of-transactions basis before being discarded.
+
+ .. change::
+ :tags: bug, sql
+ :tickets: 3924
+
+ Fixed bug in new "schema translate" feature where the translated schema
+ name would be invoked in terms of an alias name when rendered along
+ with a column expression; occurred only when the source translate
+ name was "None". The "schema translate" feature now only takes
+ effect for :class:`.SchemaItem` and :class:`.SchemaType` subclasses,
+ that is, objects that correspond to a DDL-creatable structure in
+ a database.
+
+.. changelog::
:version: 1.1.6
:released: February 28, 2017
diff --git a/doc/build/changelog/index.rst b/doc/build/changelog/index.rst
index a9f294e..58a4b59 100644
--- a/doc/build/changelog/index.rst
+++ b/doc/build/changelog/index.rst
@@ -7,7 +7,7 @@ SQLAlchemy changelogs and migration guides are now integrated
within the main documentation.
Current Migration Guide
-------------------------
+-----------------------
.. toctree::
:titlesonly:
diff --git a/doc/build/changelog/migration_06.rst b/doc/build/changelog/migration_06.rst
index c3d0df1..54a5536 100644
--- a/doc/build/changelog/migration_06.rst
+++ b/doc/build/changelog/migration_06.rst
@@ -1,6 +1,6 @@
-==============================
+=============================
What's New in SQLAlchemy 0.6?
-==============================
+=============================
.. admonition:: About this Document
diff --git a/doc/build/changelog/migration_07.rst b/doc/build/changelog/migration_07.rst
index 9c4ba3f..589970c 100644
--- a/doc/build/changelog/migration_07.rst
+++ b/doc/build/changelog/migration_07.rst
@@ -1,6 +1,6 @@
-==============================
+=============================
What's New in SQLAlchemy 0.7?
-==============================
+=============================
.. admonition:: About this Document
diff --git a/doc/build/changelog/migration_08.rst b/doc/build/changelog/migration_08.rst
index 19faafa..64ef46c 100644
--- a/doc/build/changelog/migration_08.rst
+++ b/doc/build/changelog/migration_08.rst
@@ -1,6 +1,6 @@
-==============================
+=============================
What's New in SQLAlchemy 0.8?
-==============================
+=============================
.. admonition:: About this Document
@@ -527,7 +527,7 @@ the :class:`.Table` to which ``User`` is mapped.
:ticket:`2245`
Query.update() supports UPDATE..FROM
--------------------------------------
+------------------------------------
The new UPDATE..FROM mechanics work in query.update().
Below, we emit an UPDATE against ``SomeEntity``, adding
@@ -576,7 +576,7 @@ that were not flushed in the current transaction.
:ticket:`2452`
Caching Example now uses dogpile.cache
----------------------------------------
+--------------------------------------
The caching example now uses `dogpile.cache <https://dogpilecache.readthedocs.io/>`_.
Dogpile.cache is a rewrite of the caching portion
@@ -607,7 +607,7 @@ this change is needed as illustrated in the Beaker example::
:ticket:`2589`
New Core Features
-==================
+=================
Fully extensible, type-level operator support in Core
-----------------------------------------------------
@@ -686,7 +686,7 @@ as more string, integer and date operators.
.. _feature_2623:
Multiple-VALUES support for Insert
------------------------------------
+----------------------------------
The :meth:`.Insert.values` method now supports a list of dictionaries,
which will render a multi-VALUES statement such as
@@ -708,7 +708,7 @@ remains unchanged::
:ticket:`2623`
Type Expressions
------------------
+----------------
SQL expressions can now be associated with types. Historically,
:class:`.TypeEngine` has always allowed Python-side functions which
@@ -753,7 +753,7 @@ to embed PostGIS expressions inline in SQL based on type rules.
:ticket:`1534`
Core Inspection System
------------------------
+----------------------
The :func:`.inspect` function introduced in :ref:`feature_orminspection_08`
also applies to the core. Applied to an :class:`.Engine` it produces
@@ -1241,7 +1241,7 @@ the previous behavior.
:ticket:`2664`
Repaired the Event Targeting of :class:`.InstrumentationEvents`
-----------------------------------------------------------------
+---------------------------------------------------------------
The :class:`.InstrumentationEvents` series of event targets have
documented that the events will only be fired off according to
diff --git a/doc/build/changelog/migration_10.rst b/doc/build/changelog/migration_10.rst
index 3056f6b..175d962 100644
--- a/doc/build/changelog/migration_10.rst
+++ b/doc/build/changelog/migration_10.rst
@@ -1,6 +1,6 @@
-==============================
+=============================
What's New in SQLAlchemy 1.0?
-==============================
+=============================
.. admonition:: About this Document
@@ -41,7 +41,7 @@ to proceed at speeds that rival direct use of the Core.
:ticket:`3100`
New Performance Example Suite
-------------------------------
+-----------------------------
Inspired by the benchmarking done for the :ref:`bulk_operations` feature
as well as for the :ref:`faq_how_to_profile` section of the FAQ, a new
@@ -94,7 +94,7 @@ once, a query as a pre-compiled unit begins to be feasible::
.. _feature_3150:
Improvements to declarative mixins, ``@declared_attr`` and related features
-----------------------------------------------------------------------------
+---------------------------------------------------------------------------
The declarative system in conjunction with :class:`.declared_attr` has been
overhauled to support new capabilities.
@@ -322,7 +322,7 @@ object totally smokes both namedtuple and KeyedTuple::
.. _feature_slots:
Significant Improvements in Structural Memory Use
---------------------------------------------------
+-------------------------------------------------
Structural memory use has been improved via much more significant use
of ``__slots__`` for many internal objects. This optimization is
@@ -353,7 +353,7 @@ well as weakrefs, within a basic import of "nova.db.sqlalchemy.models"::
.. _feature_updatemany:
UPDATE statements are now batched with executemany() in a flush
-----------------------------------------------------------------
+---------------------------------------------------------------
UPDATE statements can now be batched within an ORM flush
into more performant executemany() call, similarly to how INSERT
@@ -418,7 +418,7 @@ of inheritance-oriented scenarios, including:
.. _bug_3227:
Session.get_bind() will receive the Mapper in all relevant Query cases
------------------------------------------------------------------------
+----------------------------------------------------------------------
A series of issues were repaired where the :meth:`.Session.get_bind`
would not receive the primary :class:`.Mapper` of the :class:`.Query`,
@@ -501,7 +501,7 @@ as remaining ORM constructs such as :func:`.orm.synonym`.
.. _bug_3188:
ColumnProperty constructs work a lot better with aliases, order_by
--------------------------------------------------------------------
+------------------------------------------------------------------
A variety of issues regarding :func:`.column_property` have been fixed,
most specifically with regards to the :func:`.aliased` construct as well
@@ -583,7 +583,7 @@ New Features and Improvements - Core
.. _feature_3034:
Select/Query LIMIT / OFFSET may be specified as an arbitrary SQL expression
-----------------------------------------------------------------------------
+---------------------------------------------------------------------------
The :meth:`.Select.limit` and :meth:`.Select.offset` methods now accept
any SQL expression, in addition to integer values, as arguments. The ORM
@@ -826,7 +826,7 @@ the :class:`.Constraint` is constructed::
.. _feature_insert_from_select_defaults:
INSERT FROM SELECT now includes Python and SQL-expression defaults
--------------------------------------------------------------------
+------------------------------------------------------------------
:meth:`.Insert.from_select` now includes Python and SQL-expression defaults if
otherwise unspecified; the limitation where non-server column defaults
@@ -1354,7 +1354,7 @@ joined loader options can still be used::
.. _bug_3233:
Changes and fixes in handling of duplicate join targets
---------------------------------------------------------
+-------------------------------------------------------
Changes here encompass bugs where an unexpected and inconsistent
behavior would occur in some scenarios when joining to an entity
@@ -2155,7 +2155,7 @@ state.
.. _feature_3084:
MetaData.sorted_tables accessor is "deterministic"
------------------------------------------------------
+--------------------------------------------------
The sorting of tables resulting from the :attr:`.MetaData.sorted_tables`
accessor is "deterministic"; the ordering should be the same in all cases
@@ -2264,7 +2264,7 @@ flag::
:ticket:`3319`
New PostgreSQL Table options
------------------------------
+----------------------------
Added support for PG table options TABLESPACE, ON COMMIT,
WITH(OUT) OIDS, and INHERITS, when rendering DDL via
@@ -2398,14 +2398,14 @@ by PostgreSQL as of 9.4. SQLAlchemy allows this using
:class:`.FunctionFilter`
PG8000 dialect supports client side encoding
----------------------------------------------
+--------------------------------------------
The :paramref:`.create_engine.encoding` parameter is now honored
by the pg8000 dialect, using on connect handler which
emits ``SET CLIENT_ENCODING`` matching the selected encoding.
PG8000 native JSONB support
---------------------------------------
+---------------------------
Support for PG8000 versions greater than 1.10.1 has been added, where
JSONB is supported natively.
@@ -2421,12 +2421,12 @@ Support for the pypy psycopg2cffi dialect is added.
:mod:`sqlalchemy.dialects.postgresql.psycopg2cffi`
Dialect Improvements and Changes - MySQL
-=============================================
+========================================
.. _change_3155:
MySQL TIMESTAMP Type now renders NULL / NOT NULL in all cases
---------------------------------------------------------------
+-------------------------------------------------------------
The MySQL dialect has always worked around MySQL's implicit NOT NULL
default associated with TIMESTAMP columns by emitting NULL for
@@ -2449,7 +2449,7 @@ columns.
.. _change_3283:
MySQL SET Type Overhauled to support empty sets, unicode, blank value handling
--------------------------------------------------------------------------------
+------------------------------------------------------------------------------
The :class:`.mysql.SET` type historically not included a system of handling
blank sets and empty values separately; as different drivers had different
@@ -2582,7 +2582,7 @@ and is generally in decent working order, if someone wants to pick up
on polishing it.
Dialect Improvements and Changes - SQLite
-=============================================
+=========================================
SQLite named and unnamed UNIQUE and FOREIGN KEY constraints will inspect and reflect
-------------------------------------------------------------------------------------
@@ -2632,7 +2632,7 @@ to control the behavior completely, based on deprecation guidelines from
Microsoft. See :ref:`mssql_large_type_deprecation` for details.
Dialect Improvements and Changes - Oracle
-=============================================
+=========================================
.. _change_3220:
@@ -2653,7 +2653,7 @@ CTE support has been fixed up for Oracle, and there is also a new feature
:ticket:`3220`
New Oracle Keywords for DDL
------------------------------
+---------------------------
Keywords such as COMPRESS, ON COMMIT, BITMAP:
diff --git a/doc/build/changelog/migration_11.rst b/doc/build/changelog/migration_11.rst
index 58ca270..c790e46 100644
--- a/doc/build/changelog/migration_11.rst
+++ b/doc/build/changelog/migration_11.rst
@@ -1,6 +1,6 @@
-==============================
+=============================
What's New in SQLAlchemy 1.1?
-==============================
+=============================
.. admonition:: About this Document
@@ -32,7 +32,7 @@ as things like "extras", ``setup.py`` now depends on Setuptools fully.
.. seealso::
- :ref:`installation`
+ :ref:`installation`
:ticket:`3489`
... 11222 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sqlalchemy.git
More information about the Python-modules-commits
mailing list