Fix HAVING patch missing cast.

This commit is contained in:
Bruce Momjian 1998-07-24 15:54:10 +00:00
parent 128d827d4b
commit 809fc91fdd

View File

@ -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);