forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit724bf74
committed
These are two minor corrections to libpq's PQsetNoticeProcessor function.
One, it now returns the previous hook. That way people don't have to digaround in libpq-int.h for that information anymore. It previouslyreturned void, so there should be no incompatibilities.Second, you cannot set the callback to NULL anymore. (Of course you canstill call it with NULL just to get the current hook.) The way libpq usesthe callback pointer, having a NULL there wasn't very healthy.Peter Eisentraut1 parent021146f commit724bf74
2 files changed
+11
-7
lines changedLines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
1575 | 1575 |
| |
1576 | 1576 |
| |
1577 | 1577 |
| |
1578 |
| - | |
| 1578 | + | |
1579 | 1579 |
| |
1580 | 1580 |
| |
| 1581 | + | |
1581 | 1582 |
| |
1582 |
| - | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
1583 | 1587 |
| |
1584 | 1588 |
| |
| 1589 | + | |
| 1590 | + | |
1585 | 1591 |
| |
1586 | 1592 |
| |
1587 | 1593 |
| |
|
Lines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
193 | 193 |
| |
194 | 194 |
| |
195 | 195 |
| |
196 |
| - | |
197 |
| - | |
198 |
| - | |
| 196 | + | |
199 | 197 |
| |
200 | 198 |
| |
201 | 199 |
| |
|
0 commit comments
Comments
(0)