(n *pg.RangeTblEntry)
| 2248 | } |
| 2249 | |
| 2250 | func convertRangeTblEntry(n *pg.RangeTblEntry) *ast.RangeTblEntry { |
| 2251 | if n == nil { |
| 2252 | return nil |
| 2253 | } |
| 2254 | return &ast.RangeTblEntry{ |
| 2255 | Rtekind: ast.RTEKind(n.Rtekind), |
| 2256 | Relid: ast.Oid(n.Relid), |
| 2257 | Relkind: makeByte(n.Relkind), |
| 2258 | Tablesample: convertTableSampleClause(n.Tablesample), |
| 2259 | Subquery: convertQuery(n.Subquery), |
| 2260 | SecurityBarrier: n.SecurityBarrier, |
| 2261 | Jointype: ast.JoinType(n.Jointype), |
| 2262 | Joinaliasvars: convertSlice(n.Joinaliasvars), |
| 2263 | Functions: convertSlice(n.Functions), |
| 2264 | Funcordinality: n.Funcordinality, |
| 2265 | Tablefunc: convertTableFunc(n.Tablefunc), |
| 2266 | ValuesLists: convertSlice(n.ValuesLists), |
| 2267 | Ctename: makeString(n.Ctename), |
| 2268 | Ctelevelsup: ast.Index(n.Ctelevelsup), |
| 2269 | SelfReference: n.SelfReference, |
| 2270 | Coltypes: convertSlice(n.Coltypes), |
| 2271 | Coltypmods: convertSlice(n.Coltypmods), |
| 2272 | Colcollations: convertSlice(n.Colcollations), |
| 2273 | Enrname: makeString(n.Enrname), |
| 2274 | Enrtuples: n.Enrtuples, |
| 2275 | Alias: convertAlias(n.Alias), |
| 2276 | Eref: convertAlias(n.Eref), |
| 2277 | Lateral: n.Lateral, |
| 2278 | Inh: n.Inh, |
| 2279 | InFromCl: n.InFromCl, |
| 2280 | SecurityQuals: convertSlice(n.SecurityQuals), |
| 2281 | } |
| 2282 | } |
| 2283 | |
| 2284 | func convertRangeTblFunction(n *pg.RangeTblFunction) *ast.RangeTblFunction { |
| 2285 | if n == nil { |
no test coverage detected