Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  HXTT Cobol v3.0
  HXTT DBF v6.0
  Buy Now
  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 Lab of Beijing City (abbr, HXTT)

inserting nulls not recognized by Visual FoxPro
Phil Ehrlich
2015-03-06 09:28:41.0

Our company purchased your DBF driver and we have been trying to use it in a web application (Oracle ADF/WebLogic 12c), and we have recently noticed some inconsistent behavior between records inserted from VFP and records inserted from HXTT.

Notably, when inserting records with null fields, using ISNULL() in a WHERE clause in VFP does not find the records inserted from HXTT. We believe we have traced the issue back to the CDX files. We have been able to recreate the issue with a single record. The "good" and the "bad" tables (DBF files) look identical in a hex editor, but the CDX files are different. I have these files and can send them if you need.

This is the insert statement we are running

INSERT INTO cmsmsg (cmsmsgid, timesent, timeread, empownid, emplockid, pono, empsendid, oprecvid, opsendid, clsendid, clrecvid, subject, body)
VALUES (?, ?, null, null, null, ?, null, ?, ?, ?, ?, ?, ?)

Then we run this SQL from Visual FoxPro:

SELECT * FROM cmsmsg WHERE ISNULL(emplockid)

And no records are returned. If we run the same insert statement from within Visual FoxPro then the query returns the record.

Please note that the emplockid column is being passed a literal null in the insert statement.

The emplockid column is type Character(4). It is marked index (Regular, ascending, Expression=emplockid) and NULL is checkmarked in the VFP table designer.

Please advise.

Thank You
Phil Ehrlich
Re:inserting nulls not recognized by Visual FoxPro
Phil Ehrlich
2015-03-09 04:54:11.0
After further investigation, it looks like the HXTT driver puts null into the DBF file correctly, but not into the CDX index tag(s), so some queries using index optimization return incorrect results.

Please advise.

Thank you
Phil Ehrlich
Re:Re:inserting nulls not recognized by Visual FoxPro
HXTT Support
2015-03-10 08:29:25.0
Supported. Please download the latest package.
Re:Re:Re:inserting nulls not recognized by Visual FoxPro
Phil Ehrlich
2015-03-17 09:19:32.0
Thank you, the latest package has fixed the issue.

Search Key   Search by Last 50 Questions


Copyright © 1999-2017 Heng Xing Tian Tai Lab of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap