* FetchPortalTargetList * Given a portal that returns tuples, extract the query targetlist. * Returns NIL if the portal doesn't have a determinable targetlist. * * Note: do not modify the result. */
| 437 | * Note: do not modify the result. |
| 438 | */ |
| 439 | List * |
| 440 | FetchPortalTargetList(Portal portal) |
| 441 | { |
| 442 | /* no point in looking if we determined it doesn't return tuples */ |
| 443 | if (portal->strategy == PORTAL_MULTI_QUERY) |
| 444 | return NIL; |
| 445 | /* get the primary statement and find out what it returns */ |
| 446 | return FetchStatementTargetList((Node *) PortalGetPrimaryStmt(portal)); |
| 447 | } |
| 448 | |
| 449 | /* |
| 450 | * FetchStatementTargetList |
no test coverage detected