]> 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:53 +0000 (20:55 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 1 Mar 2010 20:55:53 +0000 (20:55 +0000)
commit62f5ade804bcb03f5da680c7c601dcc423ce9a63
treecee47c51c0210b11797e8894dfce798d1ffbdefa
parentb0c8b3dd6a1e1bd0bee0c60c398315455d6c8d65
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