Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: should judge by the byte size (#14230)
p0ny3e9a02d16c6c
diff --git a/frontend/src/components/SQLCheck/SQLCheckButton.vue b/frontend/src/components/SQLCheck/SQLCheckButton.vueindex 3c737d7b93..40d6746b90 100644--- a/frontend/src/components/SQLCheck/SQLCheckButton.vue+++ b/frontend/src/components/SQLCheck/SQLCheckButton.vue@@ -229,7 +229,7 @@ const runChecks = async () => {const { statement, errors, fatal } = await props.getStatement();allowForceContinue.value = !fatal;- if (statement.length > SKIP_CHECK_THRESHOLD) {+ if (new Blob([statement]).size > SKIP_CHECK_THRESHOLD) {return handleErrors([t("issue.sql-check.statement-is-too-large")]);}if (errors.length > 0) {diff --git a/frontend/src/composables/useExecuteSQL.ts b/frontend/src/composables/useExecuteSQL.tsindex 800c999b8d..41a8ffae6c 100644--- a/frontend/src/composables/useExecuteSQL.ts+++ b/frontend/src/composables/useExecuteSQL.ts@@ -124,7 +124,7 @@ const useExecuteSQL = () => {if (!params) {return { passed: false };}- if (params.statement.length > SKIP_CHECK_THRESHOLD) {+ if (new Blob([params.statement]).size> SKIP_CHECK_THRESHOLD) {return { passed: true };}const response = await sqlServiceClient.check(