]> granicus.if.org Git - postgresql/commit
Constant expressions that appear in ORDER BY, GROUP BY, DISTINCT ON
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Apr 2001 03:14:18 +0000 (03:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Apr 2001 03:14:18 +0000 (03:14 +0000)
commitffbeafb19a1c21245bc822f96d642fdefc510010
treebd6241ead499ab2c6c3dad806255e57c8a1dc3dc
parent7f2de4937a8a40fcb4e4643b7f04e75fc3a641d3
Constant expressions that appear in ORDER BY, GROUP BY, DISTINCT ON
lists should be reverse-compiled into targetlist index numbers, because
that's the only interpretation the parser allows for a constant in these
clauses.  (Ergo, the only way they could have gotten into the list in
the first place is to have come from the targetlist; so this should always
work.)  Per problem report from Peter E.
src/backend/utils/adt/ruleutils.c