Skip to content

Commit

Permalink
🚑️ Fix critical issue with INSERT stmt
Browse files Browse the repository at this point in the history
Due to an untested fix, Insert stmts are unable to run
  • Loading branch information
julien040 committed Sep 25, 2024
1 parent 6908c4e commit e3f71a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions controller/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,12 @@ func middlewareFileQuery(queryData *QueryData) bool {
// So that we don't deparse if we don't need to
modifiedTableCount := 0
for _, selectStmt := range selectStmts {
if selectStmt == nil {
continue
}
if selectStmt.FromClause == nil {
continue
}
tableFunctions := extractTableFunctions(selectStmt.FromClause)
for _, tableFunction := range tableFunctions {
// Check if the table function is a file module
Expand Down

0 comments on commit e3f71a1

Please sign in to comment.