diff --git a/packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts b/packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts index 713459272a..c2d6e8f7a9 100644 --- a/packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts +++ b/packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts @@ -891,7 +891,7 @@ class PGClient extends KnexClient { // column['unique'] = response.rows[i]['cst'].indexOf('UNIQUE') === -1 ? false : true; column.cdf = response.rows[i].cdf - ? response.rows[i].cdf.replace(/::\w+$/, '').replace(/^'|'$/g, '') + ? response.rows[i].cdf.replace(/::[\w ]+$/, '').replace(/^'|'$/g, '') : response.rows[i].cdf; // todo : need to find column comment