1 parent 7a32b13 commit b8331efCopy full SHA for b8331ef
1 file changed
backend/apps/db/db.py
@@ -596,7 +596,7 @@ def get_fields(ds: CoreDatasource, table_name: str = None):
596
with get_driver_pool(ds).connection() as conn, conn.cursor() as cursor:
597
cursor.execute(sql)
598
res = cursor.fetchall()
599
- res_list = [ColumnSchema(*item) for item in res]
+ res_list = [ColumnSchema(*item[:3]) for item in res]
600
return res_list
601
602
0 commit comments