Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JDBC Metadata getPrimaryKey(....) method,Exception thrown Bug/Err?

Status
Not open for further replies.

radhabalan

Programmer
Oct 25, 2001
7
US
Below is the code sniplet which is throwing an exception at the second line when used with a Type3 Teradata driver to connect to a Teradata database. Tried some other method getCatalogs() and it works fine.

DatabaseMetaData dbMetaData = con.getMetaData();
rs = dbMetaData.getPrimaryKeys(null, schema, name.toUpperCase());


Can anybody please suggest why its returing an error. Is it a bug in method implementation.

We tried two sets of Parameters for getPrimaryKeys(.,.,.)method
1. null, DatabaseName, TableName
2, Null, Null, DatabaseName.TableName


Help appreciated...

Thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top