Re: ResultSet got NullPointerException on getMetaData calls - Mailing list pgsql-jdbc

From Gaetano Sferra
Subject Re: ResultSet got NullPointerException on getMetaData calls
Date
Msg-id I8ALRG$FF038CFA7C0E2642CC650BD83351E4E4@libero.it
Whole thread Raw
In response to ResultSet got NullPointerException on getMetaData calls  ("Gaetano Sferra" <gaesferr@libero.it>)
List pgsql-jdbc
Hello,
I'm sorry for my previous post, the NullPointerException is on
getColumnCount() call!

> conn.setAutoCommit(false);
> CallableStatement proc = conn.prepareCall("{ ? = call myfunction() }");
> proc.registerOutParameter(1, Types.OTHER);
> proc.execute();
> ResultSet rs = (ResultSet) proc.getObject(1);
> ResultSetMetaData rsmd = rs.getMetaData(); // <- NullPointerException **WRONG**
   int cols = rsdm.getColumnCount(); // <- NullPointerException **THE TRUE ONE**

I'm sorry for mistakes and thank you for support again,
Gaetano Sferra




____________________________________________________________
Libero ADSL: 3 mesi gratis e navighi a 1.2 Mega, senza costi di attivazione.
Abbonati subito su http://www.libero.it



pgsql-jdbc by date:

Previous
From: "Gaetano Sferra"
Date:
Subject: ResultSet got NullPointerException on getMetaData calls
Next
From: Nicolas Modrzyk
Date:
Subject: Question reminder