summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-09-19 18:06:23 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-09-19 18:06:23 -0400
commit3dfcb10befc7a8c193ee992bdea009e39b2e798c (patch)
treed53e5285a9838cf1e7687e4a0c6b7a33ab94b468 /doc
parent80aeba3d5e0269eb689d991ca0b8e281715113ed (diff)
downloadsqlalchemy-3dfcb10befc7a8c193ee992bdea009e39b2e798c.tar.gz
- The ``legacy_schema_aliasing`` flag, introduced in version 1.0.5
as part of :ticket:`3424` to allow disabling of the MSSQL dialect's attempts to create aliases for schema-qualified tables, now defaults to False; the old behavior is now disabled unless explicitly turned on. fixes #3434
Diffstat (limited to 'doc')
-rw-r--r--doc/build/changelog/changelog_11.rst13
-rw-r--r--doc/build/changelog/migration_11.rst36
2 files changed, 49 insertions, 0 deletions
diff --git a/doc/build/changelog/changelog_11.rst b/doc/build/changelog/changelog_11.rst
index e20e0b4ca..e37fd1a69 100644
--- a/doc/build/changelog/changelog_11.rst
+++ b/doc/build/changelog/changelog_11.rst
@@ -22,6 +22,19 @@
:version: 1.1.0b1
.. change::
+ :tags: change, mssql
+ :tickets: 3434
+
+ The ``legacy_schema_aliasing`` flag, introduced in version 1.0.5
+ as part of :ticket:`3424` to allow disabling of the MSSQL dialect's
+ attempts to create aliases for schema-qualified tables, now defaults
+ to False; the old behavior is now disabled unless explicitly turned on.
+
+ .. seealso::
+
+ :ref:`change_3434`
+
+ .. change::
:tags: bug, orm
:tickets: 3250
diff --git a/doc/build/changelog/migration_11.rst b/doc/build/changelog/migration_11.rst
index 81c438e06..ca6c44165 100644
--- a/doc/build/changelog/migration_11.rst
+++ b/doc/build/changelog/migration_11.rst
@@ -831,5 +831,41 @@ the same thing.
:ticket:`3504`
+.. _change_3434:
+
+The legacy_schema_aliasing flag is now set to False
+---------------------------------------------------
+
+SQLAlchemy 1.0.5 introduced the ``legacy_schema_aliasing`` flag to the
+MSSQL dialect, allowing so-called "legacy mode" aliasing to be turned off.
+This aliasing attempts to turn schema-qualified tables into aliases;
+given a table such as::
+
+ account_table = Table(
+ 'account', metadata,
+ Column('id', Integer, primary_key=True),
+ Column('info', String(100)),
+ schema="customer_schema"
+ )
+
+The legacy mode of behavior will attempt to turn a schema-qualified table
+name into an alias::
+
+ >>> eng = create_engine("mssql+pymssql://mydsn", legacy_schema_aliasing=True)
+ >>> print(account_table.select().compile(eng))
+ SELECT account_1.id, account_1.info
+ FROM customer_schema.account AS account_1
+
+However, this aliasing has been shown to be unnecessary and in many cases
+produces incorrect SQL.
+
+In SQLAlchemy 1.1, the ``legacy_schema_aliasing`` flag now defaults to
+False, disabling this mode of behavior and allowing the MSSQL dialect to behave
+normally with schema-qualified tables. For applications which may rely
+on this behavior, set the flag back to True.
+
+
+:ticket:`3434`
+
Dialect Improvements and Changes - Oracle
=============================================