Thread: why two WRITE_NODE_FIELD(whereCluase)?

why two WRITE_NODE_FIELD(whereCluase)?

From
Tatsuo Ishii
Date:
I see WRITE_NODE_FIELD(whereClause) twice in _outSelectStmt(). Maybe a
bug?
--
Tatsuo Ishii


Re: why two WRITE_NODE_FIELD(whereCluase)?

From
Tom Lane
Date:
Tatsuo Ishii <t-ishii@sra.co.jp> writes:
> I see WRITE_NODE_FIELD(whereClause) twice in _outSelectStmt(). Maybe a
> bug?

Yeah, it is, though a pretty minor one since we never read SelectStmt
nodes back in again (they are not used in stored rules, which are
already Querys).  Feel free to fix it in HEAD.  Might want to check
the other fields while at it ...
        regards, tom lane