Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  Buy Now
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

Metadata (Numeric precision)
2008-05-21 22:21:01.0
for small numeric columns, the ResultSetMetaData-Class seems to return wrong information for getPrecision and getColumnDisplaySize:
real precision getprecision getColumnDisplaySize
1 1 3
2 1 3
3 1 3
4 2 4
5 3 5
So the values for NUMERIC(1) and NUMERIC(2) seems to be wrong (we use the getColumnDisplaySize to get the precision for numeric and char columns).
Any ideas?
Re:Metadata (Numeric precision)
2008-06-05 05:21:11.0
... anyone listening?
Re:Re:Metadata (Numeric precision)
HXTT Support
2008-06-05 05:49:31.0
Sorry for missing that thread.

>So the values for NUMERIC(1) and NUMERIC(2) seems to be wrong (we use the >getColumnDisplaySize to get the precision for numeric and char columns).
It's a special process. Because DBF's NUMERIC(1) and NUMERIC(2) can be used to stor e decimal point and sign, so that their precision limited to 1.
Re:Re:Re:Metadata (Numeric precision)
2008-06-05 22:47:52.0
... OK, so it is programatically not possible to get the precision
with which the column was created? Or is there another API or function?
Thanks in advance.
Re:Re:Re:Re:Metadata (Numeric precision)
HXTT Support
2008-06-06 06:38:20.0
Yeah. It's a confusion for us too, because DBF numeric format won't consider store space for the decimal point and sign, so that it will result issue when convert to other database format.

Search Key   Search by Last 50 Questions


Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap