forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7685963
committed
Handle PQresultErrorField(PG_DIAG_SQLSTATE) returning NULL in streamutil.c.
Inff27db5 I missed that PQresultErrorField() may return NULL ifthere's no sqlstate associated with an error.Spotted-By: CoverityReported-By: Michael PaquierDiscussion: CAB7nPqQ3o10SY6NVdU4pjq85GQTN5tbbkq2gnNUh2fBNU3rKyQ@mail.gmail.comBackpatch: 9.5, likeff27db51 parentd25fbf9 commit7685963
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
340 | 340 |
| |
341 | 341 |
| |
342 | 342 |
| |
343 |
| - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
344 | 346 |
| |
345 | 347 |
| |
346 | 348 |
| |
|
0 commit comments
Comments
(0)