[CONJ-528] Error executing LOAD DATA LOCAL INFILE when file is larger than max_allowed_packet Created: 2017-09-20 Updated: 2017-09-21 Resolved: 2017-09-21 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 2.1.1 |
| Fix Version/s: | 1.6.5, 2.1.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Rafael Lopez Fernández | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
When loading a local file larger than max_allowed_packet it fails:
I changed class org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol Instead of
send it in chunks:
There is a test LocalInfileInputStreamTest test2xMaxAllowedPacketLocalInfileInputStream that explicitally checks that it must fail, I don´t understand why:
Patch attached, thanks. |
| Comments |
| Comment by Diego Dupin [ 2017-09-21 ] | |||||||||||||||
|
This is clearly a bug. Snapshots (2.1.2-SNAPSHOT / 1.5.6-SNAPSHOT) version are available with correction :
|