aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/functions.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-12-25 16:04:31 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-12-25 16:04:47 -0500
commit6a8c67f5070161c721f1a8e2189836d3a73d8ef5 (patch)
tree0b5fdb8b67069c08ad28c0b7aa91e93bd689fcbc /src/backend/executor/functions.c
parentd51af6570520a457a2177edb6df0471c492c3bc0 (diff)
downloadpostgresql-6a8c67f5070161c721f1a8e2189836d3a73d8ef5.tar.gz
postgresql-6a8c67f5070161c721f1a8e2189836d3a73d8ef5.zip
Fix incorrect error reporting for duplicate data in \crosstabview.
\crosstabview's complaint about multiple entries for the same crosstab cell quoted the wrong row and/or column values. It would accidentally appear to work if the data had been in strcmp() order to start with, which probably explains how we missed noticing this during development. This could be fixed in more than one way, but the way I chose was to hang onto both result pointers from bsearch() and use those to get at the value names. In passing, avoid casting away const in the bsearch comparison functions. No bug there, just poor style. Per bug #14476 from Tomonari Katsumata. Back-patch to 9.6 where \crosstabview was introduced. Report: https://postgr.es/m/20161225021519.10139.45460@wrigleys.postgresql.org
Diffstat (limited to 'src/backend/executor/functions.c')
0 files changed, 0 insertions, 0 deletions