forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb31eead
committed
Force the second argument of SUBSTRING(foo FOR bar) to be int4, to avoid
surprising results when it's some other numeric type. This doesn't solvethe generic problem of surprising implicit casts to text, but it's alow-impact way of making sure this particular case behaves sanely.Per gripe from Harald Fuchs and subsequent discussion.1 parent19cb457 commitb31eead
1 file changed
+14
-4
lines changedLines changed: 14 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
7579 | 7579 |
| |
7580 | 7580 |
| |
7581 | 7581 |
| |
7582 |
| - | |
7583 | 7582 |
| |
7584 |
| - | |
| 7583 | + | |
| 7584 | + | |
| 7585 | + | |
7585 | 7586 |
| |
7586 | 7587 |
| |
7587 | 7588 |
| |
| |||
7593 | 7594 |
| |
7594 | 7595 |
| |
7595 | 7596 |
| |
| 7597 | + | |
7596 | 7598 |
| |
7597 | 7599 |
| |
7598 | 7600 |
| |
| |||
7601 | 7603 |
| |
7602 | 7604 |
| |
7603 | 7605 |
| |
| 7606 | + | |
| 7607 | + | |
| 7608 | + | |
| 7609 | + | |
| 7610 | + | |
| 7611 | + | |
| 7612 | + | |
7604 | 7613 |
| |
7605 | 7614 |
| |
7606 | 7615 |
| |
7607 |
| - | |
| 7616 | + | |
| 7617 | + | |
7608 | 7618 |
| |
7609 | 7619 |
| |
7610 | 7620 |
| |
|
0 commit comments
Comments
(0)