Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update query result (#16602)
ecmadao10818ff969e0
diff --git a/frontend/src/utils/v1/sql.ts b/frontend/src/utils/v1/sql.tsindex de413a3684..8d0205837b 100644--- a/frontend/src/utils/v1/sql.ts+++ b/frontend/src/utils/v1/sql.ts@@ -30,7 +30,11 @@ export const extractSQLRowValuePlain = (value: RowValue | undefined) => {// First check if there's a formatted stringValue which should take precedenceif (value.stringValue) {- return value.stringValue;+ let stringValue = value.stringValue;+ if (stringValue.startsWith('"') && stringValue.endsWith('"')) {+ stringValue = stringValue.replace(/^"|"$/g, "");+ }+ return stringValue;}// Handle binary data with auto-format detectiondiff --git a/frontend/src/views/sql-editor/EditorPanel/ResultPanel/BatchQuerySelect.vue b/frontend/src/views/sql-editor/EditorPanel/ResultPanel/BatchQuerySelect.vueindex 1a3c1be3d7..1cd3a13ab0 100644--- a/frontend/src/views/sql-editor/EditorPanel/ResultPanel/BatchQuerySelect.vue+++ b/frontend/src/views/sql-editor/EditorPanel/ResultPanel/BatchQuerySelect.vue@@ -203,14 +203,6 @@ const isEmptyQueryItem = (item: BatchQueryItem) => {);};-const filteredItems = computed(() => {- if (showEmpty.value) {- return items.value;- }-- return items.value.filter((item) => !isEmptyQueryItem(item));-});-const showEmptySwitch = computed(() => {if (items.value.length <= 1) {return false;@@ -218,6 +210,14 @@ const showEmptySwitch = computed(() => {return items.value.some((item) => isEmptyQueryItem(item));});+const filteredItems = computed(() => {+ if (showEmpty.value || !showEmptySwitch.value) {+ return items.value;+ }++ return items.value.filter((item) => !isEmptyQueryItem(item));+});+const isDatabaseQueryFailed = (item: BatchQueryItem) => {// If there is any error in the result set, we consider the query failed.return (