(n *pg.GrantStmt)
| 1668 | } |
| 1669 | |
| 1670 | func convertGrantStmt(n *pg.GrantStmt) *ast.GrantStmt { |
| 1671 | if n == nil { |
| 1672 | return nil |
| 1673 | } |
| 1674 | return &ast.GrantStmt{ |
| 1675 | IsGrant: n.IsGrant, |
| 1676 | Targtype: ast.GrantTargetType(n.Targtype), |
| 1677 | Objtype: ast.GrantObjectType(n.Objtype), |
| 1678 | Objects: convertSlice(n.Objects), |
| 1679 | Privileges: convertSlice(n.Privileges), |
| 1680 | Grantees: convertSlice(n.Grantees), |
| 1681 | GrantOption: n.GrantOption, |
| 1682 | Behavior: ast.DropBehavior(n.Behavior), |
| 1683 | } |
| 1684 | } |
| 1685 | |
| 1686 | func convertGroupingFunc(n *pg.GroupingFunc) *ast.GroupingFunc { |
| 1687 | if n == nil { |
no test coverage detected