diff options
author | Bruce Momjian | 1998-07-24 15:54:10 +0000 |
---|---|---|
committer | Bruce Momjian | 1998-07-24 15:54:10 +0000 |
commit | 809fc91fddd7fc91ee04983589cb7860d3a2b012 (patch) | |
tree | f757d6f8712df3ffb864f31f57cfc8caf1f590d7 /src | |
parent | 128d827d4bd4334bb0370a52790b3ec0f41eed57 (diff) |
Fix HAVING patch missing cast.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/optimizer/plan/subselect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/optimizer/plan/subselect.c b/src/backend/optimizer/plan/subselect.c index b5e4b1d8c84..c980144a0c1 100644 --- a/src/backend/optimizer/plan/subselect.c +++ b/src/backend/optimizer/plan/subselect.c @@ -411,7 +411,7 @@ SS_process_sublinks(Node *expr) * Otherwise aggregate functions will fail later on (at execution * time!) Reason: The rewite System makes several copies of the * VAR nodes and in this case it should not do so :-( */ - if(expr->lefthand != NULL) + if(((SubLink *) expr)->lefthand != NULL) { lfirst(((Expr *) lfirst(((SubLink *)expr)->oper))->args) = lfirst(((SubLink *)expr)->lefthand); |