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
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  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 Text(CSV)
HXTT CSV smb SELECT error
Denny
2014-08-10 14:17:20
to reproduce the bug:

1. i have a file "data.csv" which content is:

a,b
"a",1

2. connect with hxtt csv via smb, example:
jdbc:CSV:smb://user:user@localhost/c$/afolder?_CSV_Header=true;_CSV_Separator=\u007C;csvfileExtension=csv;_CSV_Quoter=\u0022;;_CSV_EOL=\u000A;
3. execute "select * from data"
4. Error occured: java.sql.SQLException: java.lang.ArrayIndexOutOfBoundsException: -1
5. this error not happen when testing the same above scenario with local folder / ftp folder

stack:
java.sql.SQLException: java.lang.ArrayIndexOutOfBoundsException: -1
at com.hxtt.c.r.B(Unknown Source)
at com.hxtt.sql.text.b.a(Unknown Source)
at com.hxtt.sql.text.b.f(Unknown Source)
at com.hxtt.sql.text.b.aS(Unknown Source)
at com.hxtt.sql.text.b.(Unknown Source)
at com.hxtt.sql.text.l.c(Unknown Source)
at com.hxtt.sql.text.l.b(Unknown Source)
at com.hxtt.sql.text.a.a(Unknown Source)
at com.hxtt.sql.text.a.a(Unknown Source)
at com.hxtt.sql.text.f.a(Unknown Source)
at com.hxtt.sql.b0.if(Unknown Source)
at com.hxtt.sql.d4.a(Unknown Source)
at com.hxtt.sql.d4.a(Unknown Source)
at com.hxtt.sql.df.a(Unknown Source)
at com.hxtt.sql.b0.a(Unknown Source)
at com.hxtt.sql.am.a(Unknown Source)
at com.hxtt.sql.d6.execute(Unknown Source)

can you please give assitance

thank you

regards
Re:HXTT CSV smb SELECT error
HXTT Support
2014-08-11 01:39:31
Checked. It should throw
character , can't follow quote character " while data is begined with quote character. Data: "a",

The error message will be fixed after solve two other issue.

You should use CSV_Separator=\u002C; to replace CSV_Separator=\u007C;
Re:HXTT CSV smb SELECT error
Denny
2014-08-11 03:14:00
thank you, it was my mistake to use wrong CSV_Separator

regards

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