pgsql: Fix portability issue in ordered-set patch.

Started by Tom Laneover 12 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers