why two WRITE_NODE_FIELD(whereCluase)?

Started by Tatsuo Ishiiover 20 years ago2 messages
#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