1 message in com.mysql.lists.dotnetConnector/NET commit: r130 - in branc...
FromSent OnAttachments
rbur...@mysql.com16 Aug 2005 13:30 
Subject:Connector/NET commit: r130 - in branches/1.0: . TestSuite
From:rbur...@mysql.com (rbur@mysql.com)
Date:08/16/2005 01:30:26 PM
List:com.mysql.lists.dotnet

Modified: branches/1.0/Client.build branches/1.0/TestSuite/ConnectionTests.cs Log: Client.build - Updated copyright date ConnectionTests.cs - Using GRANT statements to remvoe the need for nopass config
option

Modified: branches/1.0/Client.build =================================================================== --- branches/1.0/Client.build 2005-08-16 19:18:50 UTC (rev 129) +++ branches/1.0/Client.build 2005-08-16 20:30:48 UTC (rev 130) @@ -156,7 +156,7 @@ <property name="DocumentPrivates" value="False" /> <property name="DocumentEmptyNamespaces" value="False" /> <property name="IncludeAssemblyVersion" value="False" /> - <property name="CopyrightText" value="Copyright MySQL AB
2004" /> + <property name="CopyrightText" value="Copyright MySQL AB
2004-2005" /> <property name="CopyrightHref" value="http://www.mysql.com"
/> </documenter> </documenters>

Modified: branches/1.0/TestSuite/ConnectionTests.cs =================================================================== --- branches/1.0/TestSuite/ConnectionTests.cs 2005-08-16 19:18:50 UTC (rev 129) +++ branches/1.0/TestSuite/ConnectionTests.cs 2005-08-16 20:30:48 UTC (rev 130) @@ -201,13 +201,12 @@ c.Close(); }

- execSQL("DELETE FROM mysql.user WHERE length(user) = 0"); + execSQL("GRANT ALL ON *.* to 'nopass'@'localhost'"); execSQL("FLUSH PRIVILEGES");

// connect with no password string host =
System.Configuration.ConfigurationSettings.AppSettings["host"]; - string user =
System.Configuration.ConfigurationSettings.AppSettings["nopassuser"]; - connStr2 = "server=" + host + ";user id=" + user; + connStr2 = "server=" + host + ";user id=nopass"; c = new MySqlConnection( connStr2 ); c.Open(); c.Close(); @@ -221,6 +220,12 @@ { Assert.Fail( ex.Message ); } + finally + { + execSQL("DELETE FROM mysql.user WHERE length(user) = 0"); + execSQL("DELETE FROM mysql.user WHERE user='nopass'"); + execSQL("FLUSH PRIVILEGES"); + } }

[Test]