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
Join Index Bug
Martin Ross
2006-07-19 12:25:55
Given two tables
cmdbbilfile and PRSMSTR where cmdbillfile.dbf and cmdbillfile.ntx exist, and PRSMSTR.dbf exists, BUT PRSMSTR.ntx does NOT exist.

select TACCT,MACCT
from cmbbillfile this_
inner join PRSMSTR pacificpat3_
on this_.TACCT=pacificpat3_.MACCT

Returns zero rows.

When copying the PRSMSTR.NTX file into the directory with the PRSMSTR.DBF the driver returns the appropriate rows.

There should either
A) An error returned by the driver generated to let know that NTX file is missing
B) The correct results should be returned!
Re:Join Index Bug
HXTT Support
2006-07-19 19:00:36
Try:
REINDEX ALL on cmbbillfile;

then your issue should disappear.
Re:Re:Join Index Bug
Martin Ross
2006-07-19 23:24:08
That isn't the point. The point is that an incorrect result is being returned without any error message. This is really dangerous and sloppy coding.

Re:Re:Re:Join Index Bug
HXTT Support
2006-07-19 23:56:42
First, please check cmdbbilfile and cmbbillfile spell. One should be a typo.

I tested with the below sqls:
create table cmbbillfile (TACCT char(10), c1 char(10),n1 numeric(8,2));
create index TACCT of cmbbillfile.ntx on cmbbillfile (TACCT);
insert into cmbbillfile (TACCT, c1,n1) values('t1','c1',111);
insert into cmbbillfile (TACCT, c1,n1) values('taa','caaa',222);
insert into cmbbillfile (TACCT, c1,n1) values('c3','c1',3.3);
create table PRSMSTR (MACCT char(10), c1 char(10),n1 numeric(8,2));
insert into PRSMSTR (MACCT, c1,n1) values('t1','pc1',111);
insert into PRSMSTR (MACCT, c1,n1) values('t1','pc2',333);
insert into PRSMSTR (MACCT, c1,n1) values('c3','aaac1',555);

select TACCT,MACCT from cmbbillfile this_ inner join PRSMSTR pacificpat3_ on this_.TACCT=pacificpat3_.MACCT

All seems to be normal. If possible, please zip and email us your dbf sample.


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