Skip to content

Commit

Permalink
fix: schema query
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahanmmi committed Dec 18, 2024
1 parent c107e46 commit c59437a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cloudql/sdk/extra/rego/rego.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ func NewRegoEngine(ctx context.Context, logger *zap.Logger) {
}

func (r *RegoEngine) getRegoFunctionForTables(ctx context.Context) ([]func(*rego.Rego), error) {
rows, err := r.db.Query(ctx, "SELECT table_name FROM information_schema.tables WHERE table_schema NOT IN ($1)", excludedTableSchema)

rows, err := r.db.Query(ctx, "SELECT table_name FROM information_schema.tables WHERE table_schema value != any ($1)", excludedTableSchema)
if err != nil {
r.logger.Error("Unable to query database", zap.Error(err))
return nil, err
Expand Down

0 comments on commit c59437a

Please sign in to comment.