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: seeded sheet database id and error handler (#781)
STEVEN898d0d223804
diff --git a/frontend/src/store/modules/sql.ts b/frontend/src/store/modules/sql.tsindex 7e7e24a700..41dbb36278 100644--- a/frontend/src/store/modules/sql.ts+++ b/frontend/src/store/modules/sql.ts@@ -88,6 +88,10 @@ const actions = {).data.data;const resultSet = convert(data);+ if (resultSet.error) {+ throw new Error(resultSet.error);+ }+return resultSet.data;},};diff --git a/store/seed/test/10220__sheet.sql b/store/seed/test/10220__sheet.sqlindex 12bdc693b4..98a2bd0a9e 100644--- a/store/seed/test/10220__sheet.sql+++ b/store/seed/test/10220__sheet.sql@@ -5,6 +5,7 @@ INSERT INTOcreator_id,updater_id,project_id,+ database_id,name,statement)@@ -14,6 +15,7 @@ VALUES101,101,3001,+ 7018,'my-sheet','SELECT * FROM demo');