forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4c8156d
committed
Add PGTYPESchar_free() to avoid cross-module problems on Windows.
On Windows, it is sometimes important for corresponding malloc() andfree() calls to be made from the same DLL, since some build options canresult in multiple allocators being active at the same time. For thatreason we already provided PQfreemem(). This commit adds a similarfunction for freeing string results allocated by the pgtypes library.Author: Takayuki TsunakawaReviewed-by: Kyotaro HoriguchiDiscussion:https://postgr.es/m/0A3221C70F24FB45833433255569204D1F8AD5D6%40G01JPEXMBYT051 parent70b4f82 commit4c8156d
File tree
20 files changed
+189
-136
lines changed- doc/src/sgml
- src/interfaces/ecpg
- include
- pgtypeslib
- test
- expected
- pgtypeslib
- sql
20 files changed
+189
-136
lines changedLines changed: 17 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1951 | 1951 |
| |
1952 | 1952 |
| |
1953 | 1953 |
| |
1954 |
| - | |
| 1954 | + | |
1955 | 1955 |
| |
1956 | 1956 |
| |
1957 | 1957 |
| |
1958 | 1958 |
| |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
1959 | 1971 |
| |
1960 | 1972 |
| |
1961 | 1973 |
| |
| |||
2029 | 2041 |
| |
2030 | 2042 |
| |
2031 | 2043 |
| |
| 2044 | + | |
2032 | 2045 |
| |
2033 | 2046 |
| |
2034 | 2047 |
| |
| |||
2419 | 2432 |
| |
2420 | 2433 |
| |
2421 | 2434 |
| |
| 2435 | + | |
2422 | 2436 |
| |
2423 | 2437 |
| |
2424 | 2438 |
| |
| |||
2841 | 2855 |
| |
2842 | 2856 |
| |
2843 | 2857 |
| |
| 2858 | + | |
2844 | 2859 |
| |
2845 | 2860 |
| |
2846 | 2861 |
| |
| |||
3349 | 3364 |
| |
3350 | 3365 |
| |
3351 | 3366 |
| |
| 3367 | + | |
3352 | 3368 |
| |
3353 | 3369 |
| |
3354 | 3370 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
|
Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + |
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
6 | 7 |
| |
7 | 8 |
| |
8 | 9 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
| 5 | + | |
4 | 6 |
| |
5 | 7 |
| |
6 | 8 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
6 | 7 |
| |
7 | 8 |
| |
8 | 9 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
6 | 7 |
| |
7 | 8 |
| |
8 | 9 |
| |
| |||
136 | 137 |
| |
137 | 138 |
| |
138 | 139 |
| |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + |
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
| 48 | + |
0 commit comments
Comments
(0)