Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.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 Xi'an City (abbr, HXTT)

HXTT Paradox
Error using BETWEEN
Juan D��az
2011-01-03 09:26:20
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
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
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
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
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap