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 38e73a9 commit cfd2555Copy full SHA for cfd2555
src/NHibernate/AdoNet/MySqlClientSqlCommandSet.cs
@@ -51,24 +51,17 @@ public void Dispose()
51
52
public int ExecuteNonQuery()
53
{
54
- try
+ if (CountOfCommands == 0)
55
56
- if (CountOfCommands == 0)
57
- {
58
- return 0;
59
- }
60
-
61
- return doExecuteNonQuery(instance);
62
63
- catch (Exception exception)
64
65
- throw new HibernateException("An exception occured when executing batch queries", exception);
+ return 0;
66
}
+
+ return doExecuteNonQuery(instance);
67
68
69
public int CountOfCommands
70
71
get { return countOfCommands; }
72
73
74
-}
+}
0 commit comments