aboutsummaryrefslogtreecommitdiff
path: root/contrib/jsonb_plperl
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-01-31 17:03:55 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-01-31 17:03:55 -0500
commit74b35eb468dcf353e25afd4acfc7ee2b2022d6b6 (patch)
tree014046bfe6928daf4c7ccd06dc62f9f335ee5f6d /contrib/jsonb_plperl
parent2425f8f714a15fa0fa6fa2f656ad546cbb78e2d6 (diff)
downloadpostgresql-74b35eb468dcf353e25afd4acfc7ee2b2022d6b6.tar.gz
postgresql-74b35eb468dcf353e25afd4acfc7ee2b2022d6b6.zip
Fix CheckAttributeType's handling of collations for ranges.
Commit fc7695891 changed CheckAttributeType to recurse into ranges, but made it pass down the wrong collation (always InvalidOid, since ranges as such have no collation). This would result in guaranteed failure when considering a range type whose subtype is collatable. Embarrassingly, we lack any regression tests that would expose such a problem (but fortunately, somebody noticed before we shipped this bug in any release). Fix it to pass down the range's subtype collation property instead, and add some regression test cases to exercise collatable-subtype ranges a bit more. Back-patch to all supported branches, as the previous patch was. Report and patch by Julien Rouhaud, test cases tweaked by me Discussion: https://postgr.es/m/CAOBaU_aBWqNweiGUFX0guzBKkcfJ8mnnyyGC_KBQmO12Mj5f_A@mail.gmail.com
Diffstat (limited to 'contrib/jsonb_plperl')
0 files changed, 0 insertions, 0 deletions