|
|
@@ -341,15 +341,12 @@ class SqlAlchemyApi(Api):
|
|
|
assist = Assist(inspector, engine, backticks=self.backticks)
|
|
|
response = {'status': -1}
|
|
|
|
|
|
- if database is not None:
|
|
|
- database = self._fix_phoenix_empty_database(database)
|
|
|
-
|
|
|
if operation == 'functions':
|
|
|
response['functions'] = []
|
|
|
elif operation == 'function':
|
|
|
response['function'] = {}
|
|
|
elif database is None:
|
|
|
- response['databases'] = [db or ' ' for db in assist.get_databases()]
|
|
|
+ response['databases'] = [db or '' for db in assist.get_databases()]
|
|
|
elif table is None:
|
|
|
tables_meta = []
|
|
|
for t in assist.get_tables(database):
|
|
|
@@ -433,10 +430,6 @@ class SqlAlchemyApi(Api):
|
|
|
return name
|
|
|
|
|
|
|
|
|
- def _fix_phoenix_empty_database(self, database):
|
|
|
- return '' if self.options['url'].startswith('phoenix://') and database == ' ' else database
|
|
|
-
|
|
|
-
|
|
|
def _fix_bigquery_db_prefixes(self, table_or_column):
|
|
|
if self.options['url'].startswith('bigquery://'):
|
|
|
table_or_column = table_or_column.rsplit('.', 1)[-1]
|