- Notifications
You must be signed in to change notification settings - Fork4.9k
Commiteb9a98b
committed
Fix corner case bug in numeric to_char().
Trailing-zero stripping applied by the FM specifier could strip zeroesto the left of the decimal point, for a format with no digit positionsafter the decimal point (such as "FM999.").Reported and diagnosed by Marti Raudsepp, though I didn't use his patch.1 parent8036097 commiteb9a98b
File tree
3 files changed
+42
-7
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+42
-7
lines changedLines changed: 20 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3891 | 3891 |
| |
3892 | 3892 |
| |
3893 | 3893 |
| |
| 3894 | + | |
| 3895 | + | |
| 3896 | + | |
3894 | 3897 |
| |
3895 | 3898 |
| |
3896 | 3899 |
| |
| |||
3904 | 3907 |
| |
3905 | 3908 |
| |
3906 | 3909 |
| |
3907 |
| - | |
| 3910 | + | |
| 3911 | + | |
3908 | 3912 |
| |
3909 | 3913 |
| |
3910 | 3914 |
| |
| |||
4432 | 4436 |
| |
4433 | 4437 |
| |
4434 | 4438 |
| |
4435 |
| - | |
| 4439 | + | |
4436 | 4440 |
| |
4437 |
| - | |
4438 |
| - | |
4439 |
| - | |
4440 |
| - | |
4441 |
| - | |
| 4441 | + | |
| 4442 | + | |
| 4443 | + | |
| 4444 | + | |
| 4445 | + | |
| 4446 | + | |
| 4447 | + | |
| 4448 | + | |
| 4449 | + | |
| 4450 | + | |
| 4451 | + | |
| 4452 | + | |
| 4453 | + | |
| 4454 | + | |
4442 | 4455 |
| |
4443 | 4456 |
| |
4444 | 4457 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1117 | 1117 |
| |
1118 | 1118 |
| |
1119 | 1119 |
| |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1120 | 1138 |
| |
1121 | 1139 |
| |
1122 | 1140 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
746 | 746 |
| |
747 | 747 |
| |
748 | 748 |
| |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
749 | 753 |
| |
750 | 754 |
| |
751 | 755 |
| |
|
0 commit comments
Comments
(0)