Skip site navigation (1) Skip section navigation (2)

Re: Connection.setBytes()

From: Matt Fair <matt(at)netasol(dot)com>
To: Joachim Achtzehnter <joachim(at)kraut(dot)bc(dot)ca>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Connection.setBytes()
Date: 2000-07-18 20:00:43
Message-ID: 3974B769.EEFC6CBE@netasol.com (view raw or flat)
Thread:
Lists: pgsql-interfacespgsql-novice
Thank you, I changed it and it doesn't throw a null pointer any more.
Matt Fair

Joachim Achtzehnter wrote:

> On Tue, 18 Jul 2000, Matt Fair wrote:
> >
> > Here is the code I am using:
> >
> >     public PsqlConsole(String url) {
> >         try{
> >             ...
> >             con = DriverManager.getConnection("jdbc:postgr...");
> >             con.setAutoCommit(false);
> >         }
> >         catch(ClassNotFoundException e) {
> >             ...
> >         }
> >         catch(SQLException e) {
> >             ...
> >         }
> >         finally {
> >             //always close the database
> >             try {
> >                 if(con != null) con.close();
>
> This closes the connection! Once this method returns your connection is
> closed. Your subsequent SQL calls in the prompt() method use a closed
> connection.
>
> Joachim


In response to

pgsql-novice by date

Next:From: WOLF, PATRICKDate: 2000-07-18 20:28:53
Subject: RE: How to get ODBC going?
Previous:From: Joachim AchtzehnterDate: 2000-07-18 19:57:16
Subject: Re: Connection.setBytes()

pgsql-interfaces by date

Next:From: Matt FairDate: 2000-07-18 21:15:24
Subject: Searching Blobs
Previous:From: Joachim AchtzehnterDate: 2000-07-18 19:57:16
Subject: Re: Connection.setBytes()

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group