Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: select only error match (#17505)

p0nyae6db4506711
diff --git a/frontend/src/composables/useExecuteSQL.ts b/frontend/src/composables/useExecuteSQL.ts
index 8ba0e82c87..491c9b2757 100644
--- a/frontend/src/composables/useExecuteSQL.ts
+++ b/frontend/src/composables/useExecuteSQL.ts
@@ -491,7 +491,7 @@ const useExecuteSQL = () => {
const isOnlySelectError = (resultSet: SQLResultSetV1) => {
if (
- resultSet.error === "Support SELECT sql statement only" &&
+ resultSet.error.match(/Support SELECT sql statement only/) &&
resultSet.status === Code.InvalidArgument
) {
return true;