소스 검색

[phoenix] Diplay Primary Keys information

Romain Rigaux 4 년 전
부모
커밋
4e110b8f1c
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      desktop/libs/notebook/src/notebook/connectors/sql_alchemy.py

+ 1 - 2
desktop/libs/notebook/src/notebook/connectors/sql_alchemy.py

@@ -473,8 +473,7 @@ class SqlAlchemyApi(Api):
         for col in columns
       ]
 
-      if not self.options['url'].startswith('phoenix://'):
-        response.update(assist.get_keys(database, table))
+      response.update(assist.get_keys(database, table))
     else:
       columns = assist.get_columns(database, table)
       response['name'] = next((col['name'] for col in columns if column == col['name']), '')