-
Notifications
You must be signed in to change notification settings - Fork 934
Set MySqlClientBatchingBatcher as a default batcher for MySqlDataDriver #1600
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
Conversation
@@ -95,5 +96,7 @@ public override bool SupportsMultipleQueries | |||
// https://dev.mysql.com/doc/refman/5.7/en/datetime.html | |||
/// <inheritdoc /> | |||
public override DateTime MinDate => new DateTime(1000, 1, 1); | |||
|
|||
System.Type IEmbeddedBatcherFactoryProvider.BatcherFactoryClass => typeof(MySqlClientBatchingBatcherFactory); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall this be guarded by #if NETFX
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems not. It's ok then.
Update: Six of them are anecdotal: the thrown error through the batch has not the same shape. Well, it may still be a breaking change for those having configured a batch-size while not having actually enabled batching, letting MySql using the non batching batcher. Since this is somewhat an erroneous configuration, I think such a change is a grey area change and should be accepted in a minor. The six others are more problematic. They look like the errors we ignore in .Net Core builds. And we have also more errors in those builds now. |
The MySql batcher is encapsulating all exceptions occurring in I am fixing it inside this PR because the bug is showcased by current tests only if the batcher is defined as the defaut for MySql. For keeping track of this bug, I have added #1604. |
The MySql batcher misses a |
…n translation. Fixes nhibernate#1604
cfd2555
to
1df5f68
Compare
1df5f68
to
2099f0b
Compare
This PR is back to 4 failures for the AppVeyor MySql build and 8 for the Travis one. |
Setting MySql batcher as the default batcher seems to have been forgotten when it was added. (At least no one answered my question about this on its ticket.)
Also fix #1604 (no translation of data provider exception) and fix #1605 (may not close pending data reader before initiating a batch).