(n *pg.GrantRoleStmt)
| 1655 | } |
| 1656 | |
| 1657 | func convertGrantRoleStmt(n *pg.GrantRoleStmt) *ast.GrantRoleStmt { |
| 1658 | if n == nil { |
| 1659 | return nil |
| 1660 | } |
| 1661 | return &ast.GrantRoleStmt{ |
| 1662 | GrantedRoles: convertSlice(n.GrantedRoles), |
| 1663 | GranteeRoles: convertSlice(n.GranteeRoles), |
| 1664 | IsGrant: n.IsGrant, |
| 1665 | Grantor: convertRoleSpec(n.Grantor), |
| 1666 | Behavior: ast.DropBehavior(n.Behavior), |
| 1667 | } |
| 1668 | } |
| 1669 | |
| 1670 | func convertGrantStmt(n *pg.GrantStmt) *ast.GrantStmt { |
| 1671 | if n == nil { |
no test coverage detected