From 8ff244913ab36fc15ea9c00db3a79b2c63c502dc Mon Sep 17 00:00:00 2001 From: naumov Date: Fri, 8 Mar 2024 17:34:50 +0100 Subject: [PATCH] CB-4696 extend isText check to show quota message --- .../Actions/ResultSet/ResultSetFormatAction.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/webapp/packages/plugin-data-viewer/src/DatabaseDataModel/Actions/ResultSet/ResultSetFormatAction.ts b/webapp/packages/plugin-data-viewer/src/DatabaseDataModel/Actions/ResultSet/ResultSetFormatAction.ts index 4c819c2c09..9fe13cfc00 100644 --- a/webapp/packages/plugin-data-viewer/src/DatabaseDataModel/Actions/ResultSet/ResultSetFormatAction.ts +++ b/webapp/packages/plugin-data-viewer/src/DatabaseDataModel/Actions/ResultSet/ResultSetFormatAction.ts @@ -109,7 +109,19 @@ export class ResultSetFormatAction const column = this.view.getColumn(key.column); - return column?.dataKind?.toLocaleLowerCase() === 'string'; + if (column?.dataKind?.toLocaleLowerCase() === 'string') { + return true; + } + + if (key.row && !this.isBinary(key)) { + const value = this.get(key as IResultSetElementKey); + + if (isResultSetContentValue(value)) { + return value.text !== undefined; + } + } + + return false; } getHeaders(): string[] {