- Notifications
You must be signed in to change notification settings - Fork28
Commit5035d7b
committed
pg_atoi() does range check on int4 data only if
"HAS_LONG_LONG" is defined based on the assumption thatstrtol() would return ERANGE if a platform does not support64-bit integers. In current PostgreSQL 6.5 (and 6.4.2)distribution, "HAS_LONG_LONG" is defined only if platformis "alpha". (See include/port/alpha.h) I think the int4range check should apply to linux_alpha as well. (I havenot tested yet but I guess this might be applicable tonewer Linux/i386 distributions which includes new GCC whichimplements long int as 64-bit int.)1 parenta6c688d commit5035d7b
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
79 |
| - | |
| 79 | + | |
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 |
| - | |
| 91 | + | |
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
|
0 commit comments
Comments
(0)