summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-07-18 14:27:59 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-07-18 14:27:59 -0400
commit0eb53b2e7936d2b0a17077a922ce1d97f102e38a (patch)
tree790652e4bc756537db41643c5ce1355294846091 /test
parent4020f2f440b17b3637c19ac37a394646e0ddd21a (diff)
downloadsqlalchemy-0eb53b2e7936d2b0a17077a922ce1d97f102e38a.tar.gz
- Fixed bug in oracle dialect test suite where in one test,
'username' was assumed to be in the database URL, even though this might not be the case. Fixes #3128
Diffstat (limited to 'test')
-rw-r--r--test/dialect/test_oracle.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/dialect/test_oracle.py b/test/dialect/test_oracle.py
index 758ae089d..f7c49c3d3 100644
--- a/test/dialect/test_oracle.py
+++ b/test/dialect/test_oracle.py
@@ -1695,14 +1695,15 @@ class RoundTripIndexTest(fixtures.TestBase):
obj.columns]), getattr(obj, 'unique', None)
# find what the primary k constraint name should be
- primaryconsname = testing.db.execute(
- text("""SELECT constraint_name
+ primaryconsname = testing.db.scalar(
+ text(
+ """SELECT constraint_name
FROM all_constraints
WHERE table_name = :table_name
AND owner = :owner
AND constraint_type = 'P' """),
- table_name=table.name.upper(),
- owner=testing.db.url.username.upper()).fetchall()[0][0]
+ table_name=table.name.upper(),
+ owner=testing.db.dialect.default_schema_name.upper())
reflectedtable = inspect.tables[table.name]