Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  HXTT Cobol v3.0
  HXTT DBF v6.0
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v5.0
  HXTT Paradox v6.0
  HXTT Text(CSV) v6.0
  HXTT XML v2.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Ltd. of Beijing City (abbr, HXTT)

HXTT DBF
error when resultsetmetadata.getScale(int i)
lzh
2006-12-10 18:23:24.0
Dear all:
When i use the method resultsetmetadata.getScale(int i) with hxttdbf jdbc driver. error occured . I debug it with jbuilerx:
public clsList getHeads(String table) {
clsList lstHeads = new clsList();
try {
Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
HxttDataSource ds = new HxttDataSource();
ds.setUrl("jdbc:dbf:/" + dir);
HxttRowSet rowSet = new HxttRowSet(ds);
rowSet.setCommand("select * from " + table);
rowSet.execute();
ResultSetMetaData rsmd = rowSet.getMetaData();
int iNumCols = rsmd.getColumnCount();
for (int i = 1; i <= iNumCols; i++) {
clsHashtable hHead = new clsHashtable();
hHead.put("columnLabel", rsmd.getColumnLabel(i));
hHead.put("columnName", rsmd.getColumnName(i));
hHead.put("columnType", rsmd.getColumnTypeName(i));
hHead.put("columnScale", String.valueOf(rsmd.getScale(i))); // this clause is skipped
hHead.put("columnDisplaySize", String.valueOf(rsmd.getColumnDisplaySize(i)));
lstHeads.add(hHead);
}
}
catch (Exception ex) {
ex.printStackTrace();
}
finally {
return lstHeads;
}
}

when I debug it with jbuiler , the clause is skipped:
hHead.put("columnScale", String.valueOf(rsmd.getScale(i)));
the program run to :
return lstHeads;
Re:error when resultsetmetadata.getScale(int i)
HXTT Support
2006-12-10 22:26:41.0
>when I debug it with jbuiler , the clause is skipped:
>hHead.put("columnScale", String.valueOf(rsmd.getScale(i)));
Passed test. What's your issue?
Re:Re:error when resultsetmetadata.getScale(int i)
lzh
2006-12-11 00:18:27.0
Thank you very much!
I find it out;The problem was caused by a older version hxttdbf jar;

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 1999-2017 Heng Xing Tian Tai Ltd. of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap