Re: Question - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Question
Date
Msg-id Pine.LNX.4.33.0311082340140.27930-100000@leary.csoft.net
Whole thread Raw
In response to Question  (Binh Nguyen Thanh <betasoft79@yahoo.com>)
List pgsql-jdbc

On Fri, 7 Nov 2003, Binh Nguyen Thanh wrote:

> Please help me .
> this code :
>   ResultSet fksRS = dbmd.getImportedKeys(null, null, tableName);
>     while(fksRS.next())
>     {
>         ... fksRS.getString("FKCOLUMN_NAME");
>     }
>
> I get a NullPointerException because fksRS is null, but I don't know
> why. This is not the case when I use MS SQL Server...it does work. Is
> this because the JDBC driver provided with PostgreSQL doesn't support
> this function?
>

You shouldn't be getting a NullPointerException here.  Could you send a
complete example that generates this error?

Kris Jurka


pgsql-jdbc by date:

Previous
From: "Nick Fankhauser"
Date:
Subject: Re: Accessing PG DB using jdbc
Next
From: Kris Jurka
Date:
Subject: Re: ResultSetMetaData.isNullable() returns always unknown