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 2f8b671 commit b0436e6Copy full SHA for b0436e6
src/MySqlConnector/MySql.Data.MySqlClient/MySqlCommand.cs
@@ -76,6 +76,8 @@ public override void Prepare()
76
throw new InvalidOperationException("Connection property must be non-null.");
77
if (Connection.State != ConnectionState.Open)
78
throw new InvalidOperationException("Connection must be Open; current state is {0}".FormatInvariant(Connection.State));
79
+ if (string.IsNullOrWhiteSpace(CommandText))
80
+ throw new InvalidOperationException("CommandText must be specified");
81
82
// NOTE: Prepared statements in MySQL are not currently supported.
83
// 1) Only a subset of statements are actually preparable by the server: http://dev.mysql.com/worklog/task/?id=2871
0 commit comments