[editor] Switch to empty string when there's no database name for Phoenix
@@ -341,9 +341,6 @@ 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':
@@ -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]
