]> granicus.if.org Git - postgresql/commit
Fix make_greater_string to not have an undocumented collation assumption.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Apr 2011 21:39:59 +0000 (17:39 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Apr 2011 21:40:20 +0000 (17:40 -0400)
commit466dac8656c11317b91c1a4bfd5cfca4508cba94
treef5dae824a016b4b23c710c73c54bd959b1b773bf
parentcdcdfca40199bbdb30c78d105e4db267b631289c
Fix make_greater_string to not have an undocumented collation assumption.

The previous coding worked only if ltproc->fn_collation was always either
DEFAULT_COLLATION_OID or a C-compatible locale.  While that's true at the
moment, it wasn't documented (and in fact wasn't true when this code was
committed...).  But it only takes a couple more lines to make its internal
caching behavior locale-aware, so let's do that.
src/backend/utils/adt/selfuncs.c