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)
SQL update
Frank
2006-09-25 15:03:50
Hi,

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 com.hxtt.sql.text.e.do(Unknown Source)
at com.hxtt.sql.bl.a(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.dd.char(Unknown Source)
at com.hxtt.sql.dd.executeUpdate(Unknown Source)


Can you please help me out?

Thanks,
Frank
Re:SQL update
Frank
2006-09-25 15:05:02
Sorry,

sent twice by accident

Frank
Re:Re:SQL update
HXTT Support
2006-09-25 20:31:29
>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




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap