Re: patch for close connection bug

From: Dave Cramer <Dave(at)micro-automation(dot)net>
To: "Thomas O'Dowd" <tom(at)nooper(dot)com>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: patch for close connection bug
Date: 2002-09-01 23:53:56
Message-ID: 1030924436.12928.472.camel@inspiron.cramers
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Patch applied,

Thanks,
Dave
On Fri, 2002-08-30 at 22:23, Thomas O'Dowd wrote:
> Hi all,
>
> I noticed that if you shutdown the postmaster while you are connected to
> it, if you try to close the connection (it throws an exception which is
> expected) but if you call isClosed() on the connection afterwards it
> still appears to be open as pg_stream is never set to null. The
> following small patch fixes that.
>
> Would be nice to have it in for beta of 7.3.
>
> Cheers,
>
> Tom.
> --
> Thomas O'Dowd. - Nooping - http://nooper.com
> tom(at)nooper(dot)com - Testing - http://nooper.co.jp/labs
> ----
>

> Index: org/postgresql/jdbc1/AbstractJdbc1Connection.java
> ===================================================================
> RCS file: /projects/cvsroot/pgsql-server/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java,v
> retrieving revision 1.5
> diff -c -r1.5 AbstractJdbc1Connection.java
> *** org/postgresql/jdbc1/AbstractJdbc1Connection.java 2002/08/23 20:45:49
> 1.5
> --- org/postgresql/jdbc1/AbstractJdbc1Connection.java 2002/08/31 02:14:40
> ***************
> *** 776,782 ****
> }
> catch (IOException e)
> {}
> ! pg_stream = null;
> }
> }
>
> --- 776,785 ----
> }
> catch (IOException e)
> {}
> ! finally
> ! {
> ! pg_stream = null;
> ! }
> }
> }
>
> ----
>

>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2002-09-02 03:10:41 Re: JDBC Blob API bug?
Previous Message Bruce Momjian 2002-08-31 05:26:07 Re: ant version.