Re: getIndexInfo() fails - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: getIndexInfo() fails
Date
Msg-id 038801c1a9ac$4c5fa450$c201a8c0@inspiron
Whole thread Raw
In response to getIndexInfo() fails  (Matthias Jordan <jordan@kellergb5.cs.uni-dortmund.de>)
Responses tomcat update
List pgsql-jdbc
Matthias,

Try using the latest jar from jdbc.postgresql.org I am pretty sure there
were a lot of changes in that section of the driver.

Dave

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Matthias Jordan
Sent: Wednesday, January 30, 2002 9:24 AM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] getIndexInfo() fails


Hi, folks!

I try to use the above method in a project to find out whether an index
has to be created or not.

 ResultSet rs = dbInfo.getIndexInfo(null, null, tableName,false, true);

What really drives me nuts is that the ResultSet is always empty. I even
tried it the hard way and nested four for loops that cycled through
possible arguments ( null, "", "%" for the strings and true and false
for the booleans) and even tried to use the indexName instead of the
tableName. Nothing. It also doesn't matter which JDBC version I use
(currently, it's jdbc7.1-1.2.jar for PostgreSQL 7.1.2 and J2SDK1.3). I
double-checked the table name I pass and the table in question really
has an index associated to it (that's what psql says).

Any idea what could go wrong here?

Thanks in advance.
Matthias
--
PADDLE-PG


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html



pgsql-jdbc by date:

Previous
From: Justin Clift
Date:
Subject: Re: pg_dump
Next
From: "M. A. Sridhar"
Date:
Subject: Bug^H^H^HMisfeature in the JDBC driver