Skip to content

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

feat: popup to issue creation for redis write commands (#17998)

p0ny07151380e897
diff --git a/frontend/src/composables/useExecuteSQL.ts b/frontend/src/composables/useExecuteSQL.ts
index cc5744b363..9cd57eb4e2 100644
--- a/frontend/src/composables/useExecuteSQL.ts
+++ b/frontend/src/composables/useExecuteSQL.ts
@@ -365,6 +365,12 @@ const isOnlySelectError = (resultSet: SQLResultSetV1) => {
) {
return true;
}
+ if (
+ resultSet.error.match(/Support read-only command statements only/) &&
+ resultSet.status === Code.InvalidArgument
+ ) {
+ return true;
+ }
return false;
};