- Notifications
You must be signed in to change notification settings - Fork5k
Commit199d449
committed
Add overflow checks to int4 and int8 versions of generate_series().
The previous code went into an infinite loop after overflow. In fact,an overflow is not really an error; it just means that the currentvalue is the last one we need to return. So, just arrange to stopimmediately when overflow is detected.Back-patch all the way.1 parent07bc6fe commit199d449
2 files changed
+8
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1470 | 1470 |
| |
1471 | 1471 |
| |
1472 | 1472 |
| |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
1473 | 1477 |
| |
1474 | 1478 |
| |
1475 | 1479 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1268 | 1268 |
| |
1269 | 1269 |
| |
1270 | 1270 |
| |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
1271 | 1275 |
| |
1272 | 1276 |
| |
1273 | 1277 |
| |
|
0 commit comments
Comments
(0)