diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-12-29 21:06:15 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-12-29 21:11:15 -0500 |
commit | 8e159832596f15865f89675fa19202b171c99d7a (patch) | |
tree | b852d8f453fe808074b1cff68a1aed8159359e22 /lib/sqlalchemy/testing/provision.py | |
parent | 97657da543985f2c1369a64202eff559d7bf6d00 (diff) | |
download | sqlalchemy-8e159832596f15865f89675fa19202b171c99d7a.tar.gz |
disambiguate SQL server temp table constraint names
This seems to be raising errors lately which was not the
case earlier, however SQL Server seems to produce name conflicts
for named constraints against temp tables in different databases.
I can raise the error every time here running two tests
from ComponentReflectionTest with -n2. Unknown why the issue
is happening now and didn't occur for several months.
https://www.arbinada.com/en/node/1645 has some background.
Change-Id: I8854dfd88503fb855a7e12622ebe97c08915e5bb
Diffstat (limited to 'lib/sqlalchemy/testing/provision.py')
-rw-r--r-- | lib/sqlalchemy/testing/provision.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/provision.py b/lib/sqlalchemy/testing/provision.py index aa14a9c1a..c4f489a69 100644 --- a/lib/sqlalchemy/testing/provision.py +++ b/lib/sqlalchemy/testing/provision.py @@ -67,6 +67,11 @@ def setup_config(db_url, options, file_config, follower_ident): eng.connect().close() cfg = config.Config.register(eng, db_opts, options, file_config) + + # a symbolic name that tests can use if they need to disambiguate + # names across databases + config.ident = follower_ident + if follower_ident: configure_follower(cfg, follower_ident) return cfg |