]> granicus.if.org Git - postgresql/commit
Fix portability issue in ordered-set patch.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 24 Dec 2013 01:24:07 +0000 (20:24 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 24 Dec 2013 01:24:07 +0000 (20:24 -0500)
commitcf63c641cae2063a0442d73d49af295301cec61b
treed67132751f9ec41c281216cee442a83ce021a014
parent8d65da1f01c6a4c84fe9c59aeb6b7e3adf870145
Fix portability issue in ordered-set patch.

Overly compact coding in makeOrderedSetArgs() led to a platform dependency:
if the compiler chose to execute the subexpressions in the wrong order,
list_length() might get applied to an already-modified List, giving a
value we didn't want.  Per buildfarm.
src/backend/parser/gram.y