Modified:
trunk/MySql.Data/Tests/Source/ScriptExecution.cs
Log:
Added test for script execution with user variables
Modified: trunk/MySql.Data/Tests/Source/ScriptExecution.cs
===================================================================
--- trunk/MySql.Data/Tests/Source/ScriptExecution.cs 2008-11-12 15:10:08 UTC (rev 1456)
+++ trunk/MySql.Data/Tests/Source/ScriptExecution.cs 2008-11-12 15:11:38 UTC (rev 1457)
@@ -151,5 +151,15 @@
args.Ignore = false;
statementCount++;
}
+
+ [Test]
+ public void ExecuteScriptWithUserVariables()
+ {
+ string scriptText = "SET @myvar = 1";
+ MySqlScript script = new MySqlScript(scriptText);
+ script.Connection = conn;
+ int count = script.Execute();
+ Assert.AreEqual(2, count);
+ }
}
}
| Thread |
|---|
| • Connector/NET commit: r1457 - trunk/MySql.Data/Tests/Source | rburnett | 12 Nov |