Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.0
  HXTT Cobol v4.0
  HXTT DBF v7.0
  HXTT Excel v6.0
  HXTT Paradox v7.0
  HXTT PDF v1.1
  HXTT Text(CSV) v7.0
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT XML v3.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 Text(CSV)
CSV query not responding when SELECT column not exits in file.
Prasad
2018-07-30 07:51:03.0
When we SELECT columns which is not exits in CSV file, causes stackoverflow error and we have to restart app server each time.

Actual behavior:
ERROR (ApplyChangesRegularThread-3109) [SystemErr] java.lang.StackOverflowError
06/27/2018 08:09:21.030 ERROR (ApplyChangesRegularThread-3109) [SystemErr] at com.hxtt.sql.d1.a(Unknown Source)


Expected Behavior: Should throw exception saying that 'column UserId' does not exit in the source.


Driver Used : Text_JDBC30.jar
------------

We used below query: Here UserID column not exits in CSV file.
-------------------

SELECT DISTINCT
ACCOUNTNAME as Account_ID,
CASE WHEN (LEN(UserID) = 8 AND ((RIGHT(UserID,1) ='a') OR RIGHT(UserID,1) ='A')) THEN LEFT(UserID,7)
ELSE UserID END AS UserID
FROM t_my_test_ACCOUNTS_USERS

Note:
-----
Observed this behavior when the column selected is condition based like CASE in the query.


However below query works and gives the proper error.
----------------------------------------------
SELECT DISTINCT
ACCOUNTNAME as Account_ID, UserID FROM t_my_test_ACCOUNTS_USERS


Kindly assist.
Re:CSV query not responding when SELECT column not exits in file.
HXTT Support
2018-07-31 01:24:03.0
>ELSE UserID END AS UserID
It should be ELSE UserID END AS User_ID

Fixed in the latest package, and it will throw "Across reference: UserID and UserID"

Search Key   Search by Last 50 Questions




Google
 

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