Some options need to be passed to engines in all cases,
such as currently the oracle 12516 workaround. make sure
calls to testing_engine also set up the dictionary with
defaults even if options is passed. not clear if this affects
other backends yet.
Change-Id: I5a1f7634e4ce5af6fe55dc21a24db6afacd19bb7
if "ORA-12516" in str(err):
time.sleep(2)
return self.dbapi.connect(*cargs, **cparams)
+ else:
+ raise
else:
return super(OracleDialect_cx_oracle, self).connect(
*cargs, **cparams)
options = config.db_opts
else:
options = {}
+ elif config.db is not None and url.drivername == config.db.url.drivername:
+ default_opt = config.db_opts.copy()
+ default_opt.update(options)
engine = create_engine(url, **options)
engine._has_events = True # enable event blocks, helps with profiling