summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/pypostgresql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-06-28 10:41:38 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2019-06-28 10:41:38 -0400
commit345f2eb05b07713cec19c620b95ca2dfa1ca5aa0 (patch)
tree9611a3a72fd81708e73c78c8d8d808e793652b91 /lib/sqlalchemy/dialects/postgresql/pypostgresql.py
parent502cd9240e639bd9334ac83111d22500506ca773 (diff)
downloadsqlalchemy-345f2eb05b07713cec19c620b95ca2dfa1ca5aa0.tar.gz
CAST bind values against SQL Server sys into NVARCHAR
Ensured that the queries used to reflect indexes and view definitions will explicitly CAST string parameters into NVARCHAR, as many SQL Server drivers frequently treat string values, particularly those with non-ascii characters or larger string values, as TEXT which often don't compare correctly against VARCHAR characters in SQL Server's information schema tables for some reason. These CAST operations already take place for reflection queries against SQL Server ``information_schema.`` tables but were missing from three additional queries that are against ``sys.`` tables. Fixes: #4745 Change-Id: I3056533bf1a1e8ef17742879d369ab13f8b704ea
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/pypostgresql.py')
0 files changed, 0 insertions, 0 deletions