Skip to content

Commit

Permalink
Fix too-many-format-args
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 16, 2017
1 parent f1eba21 commit 262836d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/plugins/db_manager/db_plugins/oracle/connector.py
Expand Up @@ -1698,12 +1698,11 @@ def getSqlDictionary(self):
if self.userTablesOnly:
sql = u"""
SELECT DISTINCT tablename
FROM "oracle_{0}" WHERE ownername = '{1}'
FROM "oracle_{conn}" WHERE ownername = '{user}'
UNION
SELECT DISTINCT ownername
FROM "oracle_{0}" WHERE ownername = '{1}'
""".format(self.connName, self.user, self.connName,
self.user)
FROM "oracle_{conn}" WHERE ownername = '{user}'
""".format(conn=self.connName, user=self.user)

c = self.cache_connection.cursor()
c.execute(sql)
Expand Down

0 comments on commit 262836d

Please sign in to comment.