mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Remove PortalGetQueryDesc()
After having gotten rid of PortalGetHeapMemory(), there seems little reason to keep one Portal access macro around that offers no actual abstraction and isn't consistently used anyway. Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndquadrant.com> Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
This commit is contained in:
@ -75,7 +75,7 @@ execCurrentOf(CurrentOfExpr *cexpr,
|
||||
(errcode(ERRCODE_INVALID_CURSOR_STATE),
|
||||
errmsg("cursor \"%s\" is not a SELECT query",
|
||||
cursor_name)));
|
||||
queryDesc = PortalGetQueryDesc(portal);
|
||||
queryDesc = portal->queryDesc;
|
||||
if (queryDesc == NULL || queryDesc->estate == NULL)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_CURSOR_STATE),
|
||||
|
Reference in New Issue
Block a user