! * Users doing non-blocking connections need to handle the reset
! * themselves, they'll need to check the connection status if we ! * return an error. Alfred Perlstein
This commit is contained in:
parent
936b27fa87
commit
61f5e13c43
|
@ -8,7 +8,7 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.94 2000/04/12 17:17:14 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.95 2000/05/25 19:09:55 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1587,6 +1587,14 @@ PQendcopy(PGconn *conn)
|
||||||
|
|
||||||
DONOTICE(conn, "PQendcopy: resetting connection\n");
|
DONOTICE(conn, "PQendcopy: resetting connection\n");
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Users doing non-blocking connections need to handle the reset
|
||||||
|
* themselves, they'll need to check the connection status if we
|
||||||
|
* return an error.
|
||||||
|
*/
|
||||||
|
if (pqIsnonblocking(conn))
|
||||||
|
PQresetStart(conn);
|
||||||
|
else
|
||||||
PQreset(conn);
|
PQreset(conn);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue