Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  HXTT Cobol v3.0
  HXTT DBF v6.0
  HXTT Excel v5.0
  HXTT Paradox v6.0
  HXTT Text(CSV) v6.0
  Buy Now
  HXTT XML v2.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 Ltd. of Beijing 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 © 1999-2017 Heng Xing Tian Tai Ltd. of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap