Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.131
  HXTT Cobol 5.0.131
  HXTT DBF 7.1.132
  HXTT Excel 6.1.135
  HXTT Json 1.0.103
  HXTT Paradox 7.1.131
  HXTT PDF 2.0.131
  HXTT Text(CSV) 7.1.131
  Buy Now
  HXTT Word 1.1.131
  HXTT XML 4.0.132
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)

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


Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap