]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use schema_name() for SQL Server default schema
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 4 Oct 2016 15:32:20 +0000 (11:32 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 4 Oct 2016 15:33:02 +0000 (11:33 -0400)
commited7d78a73cded62373f39f1e7576beeb2a19d95f
tree40992d036dee7ecd51ffcd9a56a6128bab07ba53
parent17f3f4b1e11f9b8b18f2237fa5dcd227fc4a0e5d
Use schema_name() for SQL Server default schema

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-Id: Ic11bd4162c0d6a60432ae44876e86512703c1f81
Fixes: #3810
(cherry picked from commit 562e37ee7eaab8b19a9f081d4b170b95fce4f619)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/dialects/mssql/base.py