why two WRITE_NODE_FIELD(whereCluase)?

Started by Tatsuo Ishiialmost 21 years ago2 messageshackers
Jump to latest
#1Tatsuo Ishii
t-ishii@sra.co.jp

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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Tatsuo Ishii (#1)
Re: why two WRITE_NODE_FIELD(whereCluase)?

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