summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/provision.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-03-13 12:27:51 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-03-13 14:34:43 -0400
commit957089f79e4b2369895ea989684f26b4f31cb07d (patch)
treeaa072c9175a9967c38af94794da9940024a7cd6e /lib/sqlalchemy/testing/provision.py
parent7402f97d2b7a9e4a4fb3f8205480ba0b79c600f7 (diff)
downloadsqlalchemy-957089f79e4b2369895ea989684f26b4f31cb07d.tar.gz
Repair _execute_scalar for WITH_UNICODE mode
cx_Oracle 5.3 seems to code this flag ON now, so remove the warning and ensure WITH_UNICODE handling works. Additionally, the XE setup on jenkins is having more problems here, in particular low-connections mode is causing cx_Oracle to fail more frequently now. Turning off low-connections fixes those but then we get the TNS errors, so adding an emergency "retry" flag that is not yet a feature available to users. Real world applications are not dropping/creating thousands of tables the way our test suite is. Change-Id: Ie95b0e697276c404d3264c2e624e870463d966d6 Fixes: #3937
Diffstat (limited to 'lib/sqlalchemy/testing/provision.py')
-rw-r--r--lib/sqlalchemy/testing/provision.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/provision.py b/lib/sqlalchemy/testing/provision.py
index 23d504b84..7e4454465 100644
--- a/lib/sqlalchemy/testing/provision.py
+++ b/lib/sqlalchemy/testing/provision.py
@@ -126,6 +126,7 @@ def _mssql_update_db_opts(db_url, db_opts):
db_opts['legacy_schema_aliasing'] = False
+
@_follower_url_from_main.for_db("sqlite")
def _sqlite_follower_url_from_main(url, ident):
url = sa_url.make_url(url)
@@ -270,6 +271,11 @@ def _oracle_drop_db(cfg, eng, ident):
_ora_drop_ignore(conn, "%s_ts2" % ident)
+@_update_db_opts.for_db("oracle")
+def _oracle_update_db_opts(db_url, db_opts):
+ db_opts['_retry_on_12516'] = True
+
+
def reap_oracle_dbs(eng, idents_file):
log.info("Reaping Oracle dbs...")
with eng.connect() as conn: