Bug #54367 Prepared statement batch insertion loss
Submitted: 9 Jun 2010 13:44 Modified: 17 Sep 2012 8:10
Reporter: RICHARDS PETER Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version: 5.1.41-community OS:Linux (ubuntu 2.6.28-11-generic)
Assigned to: Alexander Soklakov CPU Architecture:Any

File: Maximum allowed size is 50MB.
Description:
Privacy:

If the data you need to attach is more than 50MB, you should create a compressed archive of the data, split it to 50MB chunks, and upload each of them as a separate attachment.

To split a large file:

[10 Jun 2010 9:42] RICHARDS PETER
I am attaching the table structure and the java code require. Please use mysql-connector-java-5.1.12-bin.jar file also in cp

Attachment: Connector.zip (application/zip, text), 354.52 KiB.

[10 Jun 2010 12:14] RICHARDS PETER
I am attaching a java code with not much threading that can still produce the issue. Let me know where I went wrong.

Attachment: PreInsert.java (text/x-java), 7.48 KiB.

[14 Jun 2010 5:59] RICHARDS PETER
Modified code with synchronization that solved the issue.

Attachment: PreInsert.java (text/x-java), 7.65 KiB.