Fix numericlocale psql option when used with a null string and latex and troff
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/describe.c | modified | +13 −12 |
| src/bin/psql/print.c | modified | +49 −128 |
| src/bin/psql/print.h | modified | +4 −2 |