Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.111
  HXTT Cobol 5.0.111
  HXTT DBF 7.1.112
  HXTT Excel 6.1.115
  HXTT Json 1.0.083
  HXTT Paradox 7.1.111
  HXTT PDF 2.0.111
  HXTT Text(CSV) 7.1.111
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Word 1.1.111
  HXTT XML 4.0.112
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.0
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.0
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.0
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 | Sitemap