Switch order of tests to avoid possible Assert failure for

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 59fb29cac64cb77ad6fd0b0b03160a62d1a2df11
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-06-09T18:15:04Z
Releases: 8.4.0
Switch order of tests to avoid possible Assert failure for
"array_agg_finalfn(null)".  We should modify pg_proc entries to prevent this
query from being accepted, but let's just make the function itself secure too.
Per my note of today.

Files

PathChange+/−
src/backend/utils/adt/array_userfuncs.c modified +9 −4