(n *pg.PartitionBoundSpec)
| 2068 | } |
| 2069 | |
| 2070 | func convertPartitionBoundSpec(n *pg.PartitionBoundSpec) *ast.PartitionBoundSpec { |
| 2071 | if n == nil { |
| 2072 | return nil |
| 2073 | } |
| 2074 | return &ast.PartitionBoundSpec{ |
| 2075 | Strategy: makeByte(n.Strategy), |
| 2076 | Listdatums: convertSlice(n.Listdatums), |
| 2077 | Lowerdatums: convertSlice(n.Lowerdatums), |
| 2078 | Upperdatums: convertSlice(n.Upperdatums), |
| 2079 | Location: int(n.Location), |
| 2080 | } |
| 2081 | } |
| 2082 | |
| 2083 | func convertPartitionCmd(n *pg.PartitionCmd) *ast.PartitionCmd { |
| 2084 | if n == nil { |
no test coverage detected