(stmt *pg_query.InsertStmt)
| 238 | } |
| 239 | |
| 240 | func (t *OperatorTransform) transformInsertStmt(stmt *pg_query.InsertStmt) bool { |
| 241 | if stmt == nil { |
| 242 | return false |
| 243 | } |
| 244 | |
| 245 | changed := false |
| 246 | |
| 247 | if stmt.SelectStmt != nil { |
| 248 | if selectStmt := stmt.SelectStmt.GetSelectStmt(); selectStmt != nil { |
| 249 | if t.transformSelectStmt(selectStmt) { |
| 250 | changed = true |
| 251 | } |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | if t.transformReturningList(stmt.ReturningList) { |
| 256 | changed = true |
| 257 | } |
| 258 | |
| 259 | return changed |
| 260 | } |
| 261 | |
| 262 | func (t *OperatorTransform) transformUpdateStmt(stmt *pg_query.UpdateStmt) bool { |
| 263 | if stmt == nil { |
no test coverage detected