Skip to content

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

chore: using SCHEMA_NAME instead of TABLE_SCHEMA (#4820)

h3n4lb2f8a65346e4
diff --git a/backend/plugin/db/snowflake/sync.go b/backend/plugin/db/snowflake/sync.go
index cbad2f26f3..c4590e1ecd 100644
--- a/backend/plugin/db/snowflake/sync.go
+++ b/backend/plugin/db/snowflake/sync.go
@@ -134,7 +134,7 @@ func (driver *Driver) getSchemaList(ctx context.Context, database string) ([]str
for k := range systemSchemas {
excludedSchemaList = append(excludedSchemaList, fmt.Sprintf("'%s'", k))
}
- excludeWhere := fmt.Sprintf("LOWER(TABLE_SCHEMA) NOT IN (%s)", strings.Join(excludedSchemaList, ", "))
+ excludeWhere := fmt.Sprintf("LOWER(SCHEMA_NAME) NOT IN (%s)", strings.Join(excludedSchemaList, ", "))
query := fmt.Sprintf(`
SELECT