mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Set errorMessage length in PQrequestCancel() in all places.
This commit is contained in:
parent
51967daa06
commit
08510856a4
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.286 2004/10/21 20:23:19 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.287 2004/10/29 17:53:13 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -2252,6 +2252,7 @@ PQrequestCancel(PGconn *conn)
|
||||
{
|
||||
strcpy(conn->errorMessage.data,
|
||||
"PQrequestCancel() -- socket() failed: ");
|
||||
conn->errorMessage.len = strlen(conn->errorMessage.data);
|
||||
goto cancel_errReturn;
|
||||
}
|
||||
retry3:
|
||||
@ -2263,6 +2264,7 @@ retry3:
|
||||
goto retry3;
|
||||
strcpy(conn->errorMessage.data,
|
||||
"PQrequestCancel() -- connect() failed: ");
|
||||
conn->errorMessage.len = strlen(conn->errorMessage.data);
|
||||
goto cancel_errReturn;
|
||||
}
|
||||
|
||||
@ -2285,6 +2287,7 @@ retry4:
|
||||
goto retry4;
|
||||
strcpy(conn->errorMessage.data,
|
||||
"PQrequestCancel() -- send() failed: ");
|
||||
conn->errorMessage.len = strlen(conn->errorMessage.data);
|
||||
goto cancel_errReturn;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user