Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.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 Lab of Xi'an City (abbr, HXTT)

HXTT DBF
Metadata (Numeric precision)
Wolfgang
2008-05-21 22:21:01
Hi,
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?
Thanks.
Re:Metadata (Numeric precision)
Wolfgang
2008-06-05 05:21:11
... anyone listening?
Thanks.
Re:Re:Metadata (Numeric precision)
HXTT Support
2008-06-05 05:49:31
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)
Wolfgang
2008-06-05 22:47:52
... 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
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




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap