Skip to content

Commit a1fbb05

Browse files
committed
fix: The remarks of the DM datasource fields cannot be synchronized #1079
1 parent ea3fd01 commit a1fbb05

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

backend/apps/db/db_sql.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,10 @@ def get_field_sql(ds: CoreDatasource, conf: DatasourceConf, table_name: str = No
271271
c.DATA_TYPE AS "DATA_TYPE",
272272
COALESCE(com.COMMENTS, '') AS "COMMENTS"
273273
FROM
274-
ALL_TAB_COLS c
274+
ALL_TAB_COLUMNS c
275275
LEFT JOIN
276276
ALL_COL_COMMENTS com
277-
ON c.OWNER = com.OWNER
278-
AND c.TABLE_NAME = com.TABLE_NAME
277+
ON c.TABLE_NAME = com.TABLE_NAME
279278
AND c.COLUMN_NAME = com.COLUMN_NAME
280279
WHERE
281280
c.OWNER = :param1

0 commit comments

Comments
 (0)