]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix regression when reflecting tables in MSSQL
authorFederico Caselli <cfederico87@gmail.com>
Thu, 16 Apr 2020 21:01:03 +0000 (23:01 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 22 Apr 2020 15:08:36 +0000 (11:08 -0400)
commit62edc4023e189836a5ba490c2dbb835827486b0b
treee0923074dff48d72a11603fd7bb3a1660caae150
parenta89a409e8b6ef8b4f185fbbde7f86fa66780b513
Fix regression when reflecting tables in MSSQL

Fix a regression introduced by the reflection of computed column in
MSSQL when using SQL server versions before 2012, which does not support
the ``concat`` function and when using the legacy TDS version 4.2.
The dialect will try to detect the protocol version of first connect
and run in compatibility mode if it cannot detect it.

Fixes: #5255
Fixes: #5271
Change-Id: I7b33f7889ac0784cd8ae5385cbd50bc8c862398a
(cherry picked from commit 50d283af1a254ef981ac9a2466399b4828de0117)
doc/build/changelog/unreleased_13/5255.rst [new file with mode: 0644]
doc/build/changelog/unreleased_13/5271.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py