(n *pg.PartitionSpec)
| 2115 | } |
| 2116 | |
| 2117 | func convertPartitionSpec(n *pg.PartitionSpec) *ast.PartitionSpec { |
| 2118 | if n == nil { |
| 2119 | return nil |
| 2120 | } |
| 2121 | return &ast.PartitionSpec{ |
| 2122 | Strategy: makeString(n.Strategy.String()), |
| 2123 | PartParams: convertSlice(n.PartParams), |
| 2124 | Location: int(n.Location), |
| 2125 | } |
| 2126 | } |
| 2127 | |
| 2128 | func convertPrepareStmt(n *pg.PrepareStmt) *ast.PrepareStmt { |
| 2129 | if n == nil { |
no test coverage detected