]> 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:32:20 +0000 (11:32 -0400)
commit562e37ee7eaab8b19a9f081d4b170b95fce4f619
tree02a1429a1306973b185dbc4b975fa39b9f6824de
parentf0ea9e37f94bd39fa4f0785dbdcd0ee1759c4a11
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
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/dialects/mssql/base.py