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
  HXTT Text(CSV) v5.2
  Buy Now
  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)

SQL update
2006-09-25 15:03:50.0

I have a serious problem with a simple SQL update statement when using CSV files:

update test set type = '0' where type = ''

These are my properties:
oProperties = new Properties();
oProperties.put("_CSV_Header", "true");
oProperties.put("_CSV_Separator", "\t");
oProperties.put("_CSV_Quoter", "");
oProperties.put("charSet", "UTF-8");
oProperties.put("csvfileExtension", "txt");
oProperties.put("maxScanRows", "-1");
oProperties.put("maxCacheSize", "65536");

I cannot reproduce the error with just any file. That's why I uploaded a file to your FTP server called "test.txt". Please use this one to reproduce the error.
Now for the problem:
When executing the update random blank lines are introduced into the file (a bit similar to what happens when executing a delete). I tried to solve to problem as I did with the delete but when issuing the PACK command I get an error:

java.sql.SQLException: java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at com.hxtt.sql.text.l.a(Unknown Source)
at com.hxtt.sql.text.b.if(Unknown Source)
at Source)
at Source)
at Source)
at com.hxtt.sql.dd.char(Unknown Source)
at com.hxtt.sql.dd.executeUpdate(Unknown Source)

Can you please help me out?

Re:SQL update
2006-09-25 15:05:02.0

sent twice by accident

Re:Re:SQL update
HXTT Support
2006-09-25 20:31:29.0
>update test set type = '0' where type = ''
Tested. No issue.

>I tried to solve to problem as I did with the delete but when issuing the PACK
> command I get an error:
>java.sql.SQLException: java.lang.ArrayIndexOutOfBoundsException
Recurrred, and fixed. v3.0.025 fixed a bug in pack csv table. Please download the laest JDBC30 package. Thanks.

Search Key   Search by Last 50 Questions


Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap