]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Recognize brackets, quoted_name in SQL Server schema
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Apr 2017 19:05:27 +0000 (15:05 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 4 Apr 2017 17:45:06 +0000 (13:45 -0400)
commit9f82afea25958910038ec768d81b157d9d2fdc7c
tree4d5af698d91d4343c07cb856693b3ec6b11c3268
parent0a44f97cb80fa062927689fb0c4c1b6026c50513
Recognize brackets, quoted_name in SQL Server schema

The SQL Server dialect now allows for a database and/or owner name
with a dot inside of it, using brackets explicitly in the string around
the owner and optionally the database name as well.  In addition,
sending the :class:`.quoted_name` construct for the schema name will
not split on the dot and will deliver the full string as the "owner".
:class:`.quoted_name` is also now available from the ``sqlalchemy.sql``
import space.

Change-Id: I77491d63ce47638bd23787d903ccde2f35a9d43d
Fixes: #2626
doc/build/changelog/changelog_12.rst
doc/build/changelog/migration_12.rst
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/sql/__init__.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/expression.py
test/dialect/mssql/test_compiler.py