Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  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 Paradox
Error using BETWEEN
Juan D��az
2011-01-03 09:26:20.0
While the following SQL statement works fine:

SELECT SUM(field) FROM table WHERE field2>='2010-10-01' AND field2<='2010-10-31';

this one produces an error:

SELECT SUM(field) FROM table WHERE field2 BETWEEN '2010-10-01' AND '2010-10-31';

with the following message:

SQLState 60000
ErrorCode 393216

and the exception being:

Error: java.lang.ArrayIndexOutOfBoundsException: 1
at com.hxtt.sql.paradox.f.a(Unknown Source)
at com.hxtt.sql.paradox.m.a(Unknown Source)
at com.hxtt.sql.q.a(Unknown Source)
at com.hxtt.sql.cm.a(Unknown Source)
at com.hxtt.sql.ay.a(Unknown Source)
at com.hxtt.sql.dk.a(Unknown Source)
at com.hxtt.sql.dk.a(Unknown Source)
at com.hxtt.sql.c2.f(Unknown Source)
at com.hxtt.sql.dk.a(Unknown Source)
at com.hxtt.sql.br.a(Unknown Source)
at com.hxtt.sql.ai.a(Unknown Source)
at com.hxtt.sql.ai.a(Unknown Source)
at com.hxtt.sql.ai.execute(Unknown Source)

Thanks.
Re:Error using BETWEEN
HXTT Support
2011-01-03 09:38:48.0
Try run once "reindex all on yourTable;" sql to see whether your issue disappear.
Re:Error using BETWEEN
Juan D��az
2011-01-03 12:06:38.0
I issued a "reindex all on table" command and the problem persists.

Juan

PS Sorry for duplicating the issue, it came from refreshing my browser trying to check for any reply.
Re:Re:Re:Error using BETWEEN
HXTT Support
2011-01-03 16:44:27.0
Then download the latest package to see whether your issue disappear. We tested the following sql and hasn't found issue:
create table table1 (field int, field2 date, primary key (field2));
insert into table1 (field,field2) values(111,'2010-03-11');
insert into table1 (field,field2) values(11,'2010-10-11');
insert into table1 (field,field2) values(111,'2010-10-31');
insert into table1 (field,field2) values(222,date());
SELECT SUM(field) FROM table1 WHERE field2 BETWEEN '2010-10-01' AND '2010-10-31';

If you meet issue with the latest package, please email us your .db and .px sample.




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