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 188d6ee commit 69c21b0Copy full SHA for 69c21b0
src/MySqlConnector/MySql.Data.MySqlClient/MySqlCommand.cs
@@ -92,7 +92,7 @@ public override void Prepare()
92
set
93
{
94
if (m_connection?.HasActiveReader ?? false)
95
- throw new MySqlException("Cannot set MySqlCommand.Connection when there is an open DataReader for this command; it must be closed first.");
+ throw new InvalidOperationException("Cannot set MySqlCommand.Connection when there is an open DataReader for this command; it must be closed first.");
96
m_connection = value;
97
}
98
0 commit comments