summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/provision.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2016-02-08 19:49:47 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2016-02-08 19:49:47 -0500
commit40c836172c6ca0ac1189736027eb9794201db706 (patch)
tree6f9c1b4443db4292e9d084b906fd3b463a5165c2 /lib/sqlalchemy/testing/provision.py
parent7eff4e8f3e3999d9eb914647d8776e6e5b7ee88e (diff)
downloadsqlalchemy-40c836172c6ca0ac1189736027eb9794201db706.tar.gz
- attempt a different style of session kill
Diffstat (limited to 'lib/sqlalchemy/testing/provision.py')
-rw-r--r--lib/sqlalchemy/testing/provision.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/provision.py b/lib/sqlalchemy/testing/provision.py
index 588a5e112..ba9754d90 100644
--- a/lib/sqlalchemy/testing/provision.py
+++ b/lib/sqlalchemy/testing/provision.py
@@ -262,7 +262,8 @@ def _oracle_drop_db(cfg, eng, ident):
"select sid, serial# from v$session "
"where username='%s'" % ident.upper()):
sid, serial = row
- conn.execute("alter system kill session '%s, %s'" % (sid, serial))
+ conn.execute("alter system disconnect session '%s, %s' immediate" % (sid, serial))
+ # conn.execute("alter system kill session '%s, %s'" % (sid, serial))
conn.execute("drop user %s cascade" % ident)
conn.execute("drop user %s_ts1 cascade" % ident)
conn.execute("drop user %s_ts2 cascade" % ident)