Commit f0bedf3
committed
Fix corner case bug in numeric to_char().
Trailing-zero stripping applied by the FM specifier could strip zeroes
to the left of the decimal point, for a format with no digit positions
after the decimal point (such as "FM999.").
Reported and diagnosed by Marti Raudsepp, though I didn't use his patch.1 parent 7b8e10f commit f0bedf3
File tree
3 files changed
+42
-7
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+42
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3908 | 3908 | | |
3909 | 3909 | | |
3910 | 3910 | | |
| 3911 | + | |
| 3912 | + | |
| 3913 | + | |
3911 | 3914 | | |
3912 | 3915 | | |
3913 | 3916 | | |
| |||
3921 | 3924 | | |
3922 | 3925 | | |
3923 | 3926 | | |
3924 | | - | |
| 3927 | + | |
| 3928 | + | |
3925 | 3929 | | |
3926 | 3930 | | |
3927 | 3931 | | |
| |||
4458 | 4462 | | |
4459 | 4463 | | |
4460 | 4464 | | |
4461 | | - | |
| 4465 | + | |
4462 | 4466 | | |
4463 | | - | |
4464 | | - | |
4465 | | - | |
4466 | | - | |
4467 | | - | |
| 4467 | + | |
| 4468 | + | |
| 4469 | + | |
| 4470 | + | |
| 4471 | + | |
| 4472 | + | |
| 4473 | + | |
| 4474 | + | |
| 4475 | + | |
| 4476 | + | |
| 4477 | + | |
| 4478 | + | |
| 4479 | + | |
| 4480 | + | |
4468 | 4481 | | |
4469 | 4482 | | |
4470 | 4483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1154 | 1154 | | |
1155 | 1155 | | |
1156 | 1156 | | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
1157 | 1175 | | |
1158 | 1176 | | |
1159 | 1177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
767 | 771 | | |
768 | 772 | | |
769 | 773 | | |
| |||
0 commit comments