New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MySqlBulkCopy: MySqlConnector.MySqlException: 'Error during LOAD DATA LOCAL INFILE' #974
Comments
Thanks for the great repro! |
I naively assumed that The fix will be to call |
Even worse, I already made this mistake but didn't learn from it ☹ #520. |
Thank you for the bugfix 💯 . |
Fixed in 1.3.5. |
Hey @bgrainger - I noticed this issue referenced an issue I opened and fixed in Npgsql a while back, and I just wanted to give you a heads up that I've discovered the fix I wrote doesn't appear to be entirely correct - I've opened another issue against Npgsql describing what I think is going on over there, so you may wish to check whether or not it also affects your fix to this issue here! Cheers |
Thanks @chrisdcmoore; it looks like my fix is subject to this same problem. I appreciate your bringing it to my attention. |
Improved fix in 1.3.9. |
Hi,
Thank you for this great library! ;)
I periodically get exceptions from the MySqlBulkCopy class.
This happens when the utf8 encoder tries to encode a unicode character into a buffer with a length of 1.
Exception:
The output byte buffer is too small to contain the encoded data, encoding 'Unicode (UTF-8)' fallback 'System.Text.EncoderReplacementFallback'. (Parameter 'bytes')
Example code to reproduce:
The text was updated successfully, but these errors were encountered: