Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  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 DBF
Error with query on new driver versions
Juan D��az
2010-12-31 07:24:50
I have a SQL query that works with the driver version dated 2010-aug-12 06:21. The same query produces an error with newer version (tested 2010-nov-18 06:46 and 2010-dec-29 08:11).

The error is "Syntax error: Stopped parse at ELSE(id149).

I have simplified the query and the problem seems to be related to the use of the ELSE keyword. So the following query fails:

SELECT sum(CASE WHEN 1 THEN 1 WHEN 2 THEN 2 ELSE 3 END)
FROM table;

Error: Syntax error: Stopped parse at ELSE(id149)
SQLState: 2A000
ErrorCode: 172032

Thanks for your support.
Re:Error with query on new driver versions
HXTT Support
2010-12-31 09:24:13
Thanks. Fixed. Please download the latest package. BTW, Both of
[NOT] CASE WHEN expr THEN result [WHEN expr THEN result ...] [ELSE expr] END, CASE expr WHEN compare_expr THEN result [WHEN compare_expr THEN result ...] [ELSE result] END are supported.

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