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 c2d6e8f7a9..ef94e4e07d 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,9 @@ 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 diff --git a/packages/nocodb/src/db/sql-client/lib/pg/YugabyteClient.ts b/packages/nocodb/src/db/sql-client/lib/pg/YugabyteClient.ts index d734dfe86c..7b98658f9d 100644 --- a/packages/nocodb/src/db/sql-client/lib/pg/YugabyteClient.ts +++ b/packages/nocodb/src/db/sql-client/lib/pg/YugabyteClient.ts @@ -119,7 +119,9 @@ class YBClient extends PGClient { // 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