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
|
Sorry,
sent twice by accident
Frank
|
>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.
|