(n *pg.TargetEntry)
| 2712 | } |
| 2713 | |
| 2714 | func convertTargetEntry(n *pg.TargetEntry) *ast.TargetEntry { |
| 2715 | if n == nil { |
| 2716 | return nil |
| 2717 | } |
| 2718 | return &ast.TargetEntry{ |
| 2719 | Xpr: convertNode(n.Xpr), |
| 2720 | Expr: convertNode(n.Expr), |
| 2721 | Resno: ast.AttrNumber(n.Resno), |
| 2722 | Resname: makeString(n.Resname), |
| 2723 | Ressortgroupref: ast.Index(n.Ressortgroupref), |
| 2724 | Resorigtbl: ast.Oid(n.Resorigtbl), |
| 2725 | Resorigcol: ast.AttrNumber(n.Resorigcol), |
| 2726 | Resjunk: n.Resjunk, |
| 2727 | } |
| 2728 | } |
| 2729 | |
| 2730 | func convertTransactionStmt(n *pg.TransactionStmt) *ast.TransactionStmt { |
| 2731 | if n == nil { |
no test coverage detected