- Notifications
You must be signed in to change notification settings - Fork5
Commit062780e
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 parentbf347c6 commit062780e
2 files changed
+8
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1382 | 1382 |
| |
1383 | 1383 |
| |
1384 | 1384 |
| |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
1385 | 1389 |
| |
1386 | 1390 |
| |
1387 | 1391 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1410 | 1410 |
| |
1411 | 1411 |
| |
1412 | 1412 |
| |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
1413 | 1417 |
| |
1414 | 1418 |
| |
1415 | 1419 |
| |
|
0 commit comments
Comments
(0)