We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2965228 commit 1df5f68Copy full SHA for 1df5f68
src/NHibernate/AdoNet/MySqlClientBatchingBatcher.cs
@@ -39,6 +39,10 @@ protected override int CountOfStatementsInCurrentBatch
39
40
public override void AddToBatch(IExpectation expectation)
41
{
42
+ // MySql batcher cannot be initiated if a data reader is still open: check them.
43
+ if (CountOfStatementsInCurrentBatch == 0)
44
+ CheckReaders();
45
+
46
totalExpectedRowsAffected += expectation.ExpectedRowCount;
47
var batchUpdate = CurrentCommand;
48
Prepare(batchUpdate);
0 commit comments