From 56947e83afc498ead7b8dce2c4a6b173b6d89799 Mon Sep 17 00:00:00 2001 From: mertmit Date: Mon, 13 Nov 2023 19:13:30 +0300 Subject: [PATCH] fix: regex to get default value Signed-off-by: mertmit --- packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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