]> granicus.if.org Git - postgresql/commit
Fix numericlocale psql option when used with a null string and latex and troff
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 1 Mar 2010 20:55:45 +0000 (20:55 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 1 Mar 2010 20:55:45 +0000 (20:55 +0000)
commit93df658a0189cfeda273f6efd2228578bb7933d3
tree03011e882f34757e1b6481b6038e56998c4a3184
parentd6a6f8c6be4b6d6a9e90e92d91a83225bfe8d29d
Fix numericlocale psql option when used with a null string and latex and troff
formats; a null string must not be formatted as a numeric. The more exotic
formats latex and troff also incorrectly formatted all strings as numerics
when numericlocale was on.

Backpatch to 8.1 where numericlocale option was added.

This fixes bug #5355 reported by Andy Lester.
src/bin/psql/describe.c
src/bin/psql/print.c
src/bin/psql/print.h