Hi,
Bruce Momjian <bruce@momjian.us>
Hi,
the to_char() source code is large, here are regression tests for
numeric/timestamp/int8 part. It is probably enough test for formatting
code in the formatting.c module. The others (float4/float8/int4) types
share this formatting code and eventual bugs for these types aren't
few probable.
Patch fix timestamp_to_char() for infinity/invalid timestamp too.
Karel
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/formatting.c | modified | +26 −15 |
| src/test/regress/expected/int8.out | modified | +176 −0 |
| src/test/regress/expected/numeric.out | modified | +416 −0 |
| src/test/regress/expected/timestamp.out | modified | +604 −0 |
| src/test/regress/sql/int8.sql | modified | +28 −0 |
| src/test/regress/sql/numeric.sql | modified | +49 −0 |
| src/test/regress/sql/timestamp.sql | modified | +45 −0 |