forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit138531f
committed
Clear conn->errorMessage at successful completion of PQconnectdb().
Commitsffa2e46 and52a1022 caused libpq's connection-establishmentfunctions to usually leave a nonempty string in the connection'serrorMessage buffer, even after a successful connection. While thatwas intentional on my part, more sober reflection says that it wasn'ta great idea: the string would be a bit confusing. Also this broke atleast one application that checked for connection success by examiningthe errorMessage, instead of using PQstatus() as documented. Let'sclear the buffer at success exit, restoring the pre-v14 behavior.Discussion:https://postgr.es/m/4170264.1620321747@sss.pgh.pa.us1 parent1882d6c commit138531f
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3654 | 3654 |
| |
3655 | 3655 |
| |
3656 | 3656 |
| |
| 3657 | + | |
| 3658 | + | |
| 3659 | + | |
| 3660 | + | |
| 3661 | + | |
| 3662 | + | |
| 3663 | + | |
3657 | 3664 |
| |
3658 | 3665 |
| |
3659 | 3666 |
| |
|
0 commit comments
Comments
(0)