Skip to content

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

chore: fail when no queriable data source (#14700)

Liu Jib2d28d968028
diff --git a/frontend/src/composables/useExecuteSQL.ts b/frontend/src/composables/useExecuteSQL.ts
index 8c1e11a133..96a9418a3d 100644
--- a/frontend/src/composables/useExecuteSQL.ts
+++ b/frontend/src/composables/useExecuteSQL.ts
@@ -317,6 +317,18 @@ const useExecuteSQL = () => {
: undefined,
database
) ?? "";
+
+ if (!dataSourceId) {
+ fail(database, {
+ advices: [],
+ allowExport: false,
+ error: "No queriable data source.",
+ results: [],
+ status: Status.NOT_FOUND,
+ });
+ continue;
+ }
+
const resultSet = await sqlStore.query(
{
name: database.name,