(tree *pg_query.ParseResult, result *Result)
| 30 | } |
| 31 | |
| 32 | func (t *ExpandArrayTransform) Transform(tree *pg_query.ParseResult, result *Result) (bool, error) { |
| 33 | changed := false |
| 34 | t.lateralCounter = 0 |
| 35 | |
| 36 | for _, stmt := range tree.Stmts { |
| 37 | if stmt.Stmt == nil { |
| 38 | continue |
| 39 | } |
| 40 | |
| 41 | if selectStmt := stmt.Stmt.GetSelectStmt(); selectStmt != nil { |
| 42 | if t.transformSelectStmt(selectStmt) { |
| 43 | changed = true |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | return changed, nil |
| 49 | } |
| 50 | |
| 51 | func (t *ExpandArrayTransform) transformSelectStmt(stmt *pg_query.SelectStmt) bool { |
| 52 | if stmt == nil { |
nothing calls this directly
no test coverage detected