reading an oidvector field error - Mailing list pgsql-jdbc

From Takeichi Kanzaki Cabrera
Subject reading an oidvector field error
Date
Msg-id 651aa54b0601120629u5008e159y4af88edca5037a82@mail.gmail.com
Whole thread Raw
Responses Re: reading an oidvector field error
List pgsql-jdbc
Hi:
I need to read from the database a oidvector field, I'm using this
code snipped to do this:

            Array argsList = rsFunc.getArray("field");
            ResultSet rsArgs = argsList.getResultSet();
            while (rsArgs.next()) {
                String s = rsArgs.getInt(2);    //get an error here.
                PgDataType type = this.getDataType(s);
                args.add(type);
            }
rsFunc: is the ResultSet to read the data.
argsList: is and java.sql.Array.

but I get an error of execution time on the line signed, I'm check the
driver source code and I find that this kind of vector is not
supported and I can't change the data type of the field.
Could some one help me to solve this.

--
My regards,
Takeichi Kanzaki Cabrera
Profesor of Computer Programming Techniques and Database Systems
University of Holguin
Cuba

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: cannot dollar-quote $$?$$ in PreparedStatements
Next
From: Rainer Leo
Date:
Subject: error code invalid_input_syntax