mirror of
https://github.com/postgres/postgres.git
synced 2025-06-02 00:01:40 -04:00
There is a patch which has worked for me. The real problem might
be in PQreset, which can't reset a conninfo based connection. The patch: Arpad Magosanyi
This commit is contained in:
parent
2925114933
commit
67a636918a
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.25 1998/06/16 04:10:16 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.26 1998/06/16 05:50:55 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -442,7 +442,7 @@ Pg_exec(ClientData cData, Tcl_Interp *interp, int argc, char* argv[])
|
|||||||
else {
|
else {
|
||||||
/* error occurred during the query */
|
/* error occurred during the query */
|
||||||
Tcl_SetResult(interp, conn->errorMessage, TCL_STATIC);
|
Tcl_SetResult(interp, conn->errorMessage, TCL_STATIC);
|
||||||
if (connStatus == CONNECTION_OK) {
|
if (connStatus != CONNECTION_OK) {
|
||||||
/* Is this REALLY a good idea? I don't think so! */
|
/* Is this REALLY a good idea? I don't think so! */
|
||||||
PQreset(conn);
|
PQreset(conn);
|
||||||
if (conn->status == CONNECTION_OK) {
|
if (conn->status == CONNECTION_OK) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user