提交 809fc91f 编写于 作者: B Bruce Momjian

Fix HAVING patch missing cast.

上级 128d827d
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册