Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  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)

HXTT DBF
incorrect join on linux
Jan Dvorak
2008-01-04 05:56:14.0
We've encountered a problem when using the HXTT DBF driver (version 4.0.013, but the problem occurs with earlier versions as well). We are joining over a text column that contains non-ASCII characters.

We separated out a pair of tables, two records each, that demonstrate the problem - HXTT DBF performs the join incorrectly.

It is interesting that we find the problem only when running on Linux. On Windows, it works o.k. We tried the Sun JRE, both 1.5 and 1.6.

We will email the data files to support@hxtt.com shortly.
Here is a short ant build file:



userid="" password=""
print="true" encoding="utf-8">



SELECT oso_id, koljme FROM vav_kol_oso_kat;
SELECT koljme, jmeno FROM vav_kol_oso_vys;
SELECT b.oso_id AS oso_id, b.koljme koljmeb, a.koljme koljmea, jmeno AS jmeno FROM vav_kol_oso_vys a , vav_kol_oso_kat b where a.koljme=b.koljme;



If we run the script on Windows we get (the join is o.k. here):
[sql] Executing commands
[sql] OSO_ID,KOLJME
[sql] -84291,Novotný, I.
[sql] -84361,Novotný, T.
[sql] 0 rows affected
[sql] KOLJME,JMENO
[sql] Novotný, T.,Tom��š
[sql] Novotný, I.,Ivan
[sql] 0 rows affected
[sql] oso_id,koljmeb,koljmea,JMENO
[sql] -84361,Novotný, T.,Novotný, T.,Tom��š
[sql] -84291,Novotný, I.,Novotný, I.,Ivan
[sql] 0 rows affected
[sql] 3 of 3 SQL statements executed successfully
sql:
BUILD SUCCESSFUL

This is what comes out on Linux:
[sql] Executing commands
[sql] OSO_ID,KOLJME
[sql] -84291,Novotný, I.
[sql] -84361,Novotný, T.
[sql]
[sql] 0 rows affected
[sql] KOLJME,JMENO
[sql] Novotný, T.,Tom��š
[sql] Novotný, I.,Ivan
[sql]
[sql] 0 rows affected
[sql] oso_id,koljmeb,koljmea,JMENO
[sql] -84361,Novotný, T.,Novotný, T.,Tom��š
[sql] -84361,Novotný, T.,Novotný, I.,Ivan <<<=== This row is wrong!
[sql]
[sql] 0 rows affected
[sql] 3 of 3 SQL statements executed successfully

sql:
BUILD SUCCESSFUL

Search Key   Search by Last 50 Questions




Google
 

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