Skip to content

Commit

Permalink
Small modifications to tablename tuple function name
Browse files Browse the repository at this point in the history
kadrlica committed Dec 8, 2015
1 parent b9d969d commit 7c3474b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions easyaccess.py
Original file line number Diff line number Diff line change
@@ -1589,7 +1589,7 @@ def complete_user_tables(self, text, line, start_index, end_index):
else:
return options_users

def get_real_table(self, tablename):
def get_tablename_tuple(self, tablename):
"""
Return the tuple (schema,table,link) that can be used to
locate the `real` table requested.
@@ -1681,7 +1681,7 @@ def do_describe_table(self, arg, clear=True):
pass

try:
schema,table,link = self.get_real_table(tablename)
schema,table,link = self.get_tablename_tuple(tablename)
# schema, table and link are now valid.
link = "@" + link if link else ""
qcom = """
@@ -1786,7 +1786,7 @@ def do_show_index(self, arg):
tablename = tablename.upper()

try:
schema,table,link = self.get_real_table(tablename)
schema,table,link = self.get_tablename_tuple(tablename)
link = "@" + link if link else ""
except:
print(colored("Table not found.", "red"))

0 comments on commit 7c3474b

Please sign in to comment.