[MDEV-12782] Malformed packet / LOAD DATA LOCAL / mysql_real_connect Created: 2017-05-11 Updated: 2017-12-16 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Insert, Scripts & Clients |
| Affects Version/s: | 10.1.22 |
| Fix Version/s: | 10.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Stuart Belcher | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows 10 |
||
| Attachments: |
|
| Description |
|
Running with libmysql.dll from packaged 10.1.22.0 win32 distribution. Using mysql_real_connect twice (example code did this after credentials failure) - documentation does not specify any use conditions around this. All OK until performing LOAD DATA LOCAL INFILE, when the error Malformed Packet is given. Workaround (or intended use?) is to call mysql_close and mysql_init between calls to mysql_real_connect. |
| Comments |
| Comment by Elena Stepanova [ 2017-05-13 ] | ||||||
|
Could you please provide a full code sample? I don't seem to be able to repeat this.
| ||||||
| Comment by Stuart Belcher [ 2017-05-15 ] | ||||||
|
Code sample attached - Delphi rather than C. MySQL client library unit not attached - is just statically linked to the C functions in LibMySQL.dll (the names are mapped - should be obvious which is which). Calls to functions are:
Error executing query: Malformed packet user 'foo'@'localhost' (using password: YES) (2) | ||||||
| Comment by Elena Stepanova [ 2017-09-19 ] | ||||||
|
alice, |