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 11:59:35.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
Juan
2011-01-03 12:11:21.0
I am noticing some strange behavior while quering the database using the Paradox driver. Things like some queries include a record but others don't, or record number start to change (maybe decrease) as I more queries are performed.

A reindex operation seems to solve this issue, does this mean that the Paradox driver modifies the files in any way? If so, I was not expecting this.

Regards.

Juan
Re:Re:Error using BETWEEN
HXTT Support
2011-01-03 16:49:38.0
>A reindex operation seems to solve this issue, does this mean that the Paradox
> driver modifies the files in any way?
It means that one of your index files is obsolete. HXTT Paradox won't modify your database for query sql, and will choose one suitable index from existent indices according to where clause.
Re: Error using BETWEEN
Juan D��az
2011-01-05 14:28:53.0
What do you mean by obsolete?
Re:Re:Re:Re:Error using BETWEEN
HXTT Support
2011-01-05 16:40:53.0
>What do you mean by obsolete?
Whether there're other application modify that database, and doesn't maintain indices file in time?
Re:Error using BETWEEN
Juan D��az
2011-01-06 06:36:58.0
This is what I am trying to understand.

Yes, the database is part of an application. However, the strange behavior occurs when the application is not running. Is it possible that the application leaves corrupt indexes? If so, how comes the application never presents this kind of problems itself?

I need to your help to understand what is going on, otherwise the information I obtain from the application is useless (since I cannot tell whether it is accurate or not).

Thanks.
Re:Re:Re:Re:Re:Re:Error using BETWEEN
HXTT Support
2011-01-06 06:46:46.0
>Is it possible that the application leaves corrupt indexes?
No corrupted. Just obsolete without the latest modification information.

>If so, how comes the application never presents this kind of problems itself?
It will reindex or doesn't utilize that obsolete index.

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