OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
128d827
)
Fix HAVING patch missing cast.
author
Bruce Momjian
<bruce@momjian.us>
Fri, 24 Jul 1998 15:54:10 +0000
(15:54 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Fri, 24 Jul 1998 15:54:10 +0000
(15:54 +0000)
src/backend/optimizer/plan/subselect.c
patch
|
blob
|
history
diff --git
a/src/backend/optimizer/plan/subselect.c
b/src/backend/optimizer/plan/subselect.c
index
b5e4b1d
..
c980144
100644
(file)
--- 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);