Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.253
  HXTT Cobol 5.0.252
  HXTT DBF 7.1.253
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel 6.1.256
  HXTT Json 1.0.224
  HXTT Paradox 7.1.252
  HXTT PDF 2.0.252
  HXTT Text(CSV) 7.1.252
  HXTT Word 1.1.252
  HXTT XML 4.0.253
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
Search on numeric value returns no result
Transer
2010-02-13 09:15:45
Hi!
After the fix for support request "Improper result of search byte value in column of character type" search by numeric value in numeric column returns no results. But search on ">" works right.
Test query: "select * from table where field = 1". Result: no rows - wrong.
Test query: "select * from table where field > 0". Result: lot of rows - right.
Table has compound index and tag with same name as field.
Table format: FoxPro 2.5 for DOS, versionNumber - "F5", code page - CP866.
Actual DBF driver was used.
Thanks.
Re:Search on numeric value returns no result
HXTT Support
2010-02-15 22:30:30
According to our test, the showed 1 value is stored as 0.9999999987640456 in DBF, which VFP failed to query with CDX too. Please download the latest package which can fix your where clause and query the value between 0.999995 and 1.00005 for you.
Re:Re:Search on numeric value returns no result
Transer
2010-02-16 03:07:56
In my case numeric value layed out in DBF as as strings (if open in text editor) in the same format as seen ("1", not "0.9999999987640456"). And driver maps numeric values as BigDecimal. So, IMHO it is necessary to fix bug rised in driver from 2010-01-12 and revert workaround solution with searching between two values (keep in mind performance issues).
Test table was sent to support@hxtt.com.
Re:Re:Re:Search on numeric value returns no result
Transer
2010-02-16 03:19:53
Note, field has a type NUMERIC, not FLOAT, with width 2 and decimal positions 0 ("N(2,0)").
Re:Re:Re:Re:Search on numeric value returns no result
HXTT Support
2010-02-16 06:02:38
Pass also test your sample with the latest package. Please try.
Re:Re:Re:Re:Re:Search on numeric value returns no result
Transer
2010-02-16 07:04:00
Driver DBF 4.2.126 returns proper results. Thanks.

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 | Sitemap