db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Cecchet <Emmanuel.Cecc...@inrialpes.fr>
Subject Pb with metadata and remote JDBC driver
Date Tue, 16 Nov 2004 21:49:14 GMT
Hi all,

I am using Derby with Network server and the DB2 universal connector. I 
have problems retrieving metadata from Derby.
If I run the following code:
      DatabaseMetaData metaData = connection.getMetaData();
      String[] types = {"TABLE", "VIEW"};
      ResultSet rs = metaData.getTables(null, null, "%", types);

The ResultSet (rs) is not null but closed and any call to rs.next() 
fails reporting that the ResultSet is closed.

Any idea why this happens?
Thanks for your help,

View raw message