(n *pg.CaseTestExpr)
| 694 | } |
| 695 | |
| 696 | func convertCaseTestExpr(n *pg.CaseTestExpr) *ast.CaseTestExpr { |
| 697 | if n == nil { |
| 698 | return nil |
| 699 | } |
| 700 | return &ast.CaseTestExpr{ |
| 701 | Xpr: convertNode(n.Xpr), |
| 702 | TypeId: ast.Oid(n.TypeId), |
| 703 | TypeMod: n.TypeMod, |
| 704 | Collation: ast.Oid(n.Collation), |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | func convertCaseWhen(n *pg.CaseWhen) *ast.CaseWhen { |
| 709 | if n == nil { |
no test coverage detected