Thread: pgsql: Fix portability issue in ordered-set patch.

pgsql: Fix portability issue in ordered-set patch.

From
Tom Lane
Date:
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/cf63c641cae2063a0442d73d49af295301cec61b

Modified Files
--------------
src/backend/parser/gram.y |    6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)