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:59 +0000 (20:55 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 1 Mar 2010 20:55:59 +0000 (20:55 +0000)
commit407e42dccdf3d984ca3aea782e704dfe64874d97
tree05bade105188347d7bf0f18fa555ddde01e16612
parent7d9d852603b1a926abfba0c6da64f72fbd6df229
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/print.c