From: Date: September 19 2006 9:33pm
Subject: Connector/NET commit: r350 - in branches/1.0: . TestSuite mysqlclient
List-Archive: http://lists.mysql.com/commits/12237
X-Bug: 22452
Message-Id: <200609191933.k8JJXo8P022611@bk-internal.mysql.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Modified:
branches/1.0/CHANGES
branches/1.0/TestSuite/StoredProcedure.cs
branches/1.0/mysqlclient/MySql.Data.csproj
Log:
Bug #22452 MySql.Data.MySqlClient.MySqlException:
This bug had been fixed by a different patch but we added a test case here.
Also, moved the reference of SharedMemoryStream from root to common
Modified: branches/1.0/CHANGES
===================================================================
--- branches/1.0/CHANGES 2006-09-19 19:32:12 UTC (rev 349)
+++ branches/1.0/CHANGES 2006-09-19 19:33:49 UTC (rev 350)
@@ -27,7 +27,8 @@
Bug #17736 Selecting a row with with empty date '0000-00-00' results in Read() hanging. [fixed]
Bug #20581 Null Reference Exception when closing reader after stored procedure.
Bug #21521 # Symbols not allowed in column/table names.
-
+ Bug #16884 Invalid DateTime Values from DataReader
+
x-xx-05 - Version 1.0.7
Bugs fixed or addressed
Modified: branches/1.0/TestSuite/StoredProcedure.cs
===================================================================
--- branches/1.0/TestSuite/StoredProcedure.cs 2006-09-19 19:32:12 UTC (rev 349)
+++ branches/1.0/TestSuite/StoredProcedure.cs 2006-09-19 19:33:49 UTC (rev 350)
@@ -21,6 +21,8 @@
using System.Data;
using MySql.Data.MySqlClient;
using NUnit.Framework;
+using System.Globalization;
+using System.Threading;
namespace MySql.Data.MySqlClient.Tests
{
@@ -878,5 +880,36 @@
Assert.IsTrue(o is ulong);
Assert.AreEqual(1, o);
}
+
+ ///
+ /// Bug #22452 MySql.Data.MySqlClient.MySqlException:
+ ///
+ [Category("5.0")]
+ [Test]
+ public void TurkishStoredProcs()
+ {
+ execSQL("CREATE PROCEDURE spTest(IN p_paramname INT) BEGIN SELECT p_paramname; END");
+ CultureInfo uiCulture = Thread.CurrentThread.CurrentUICulture;
+ CultureInfo culture = Thread.CurrentThread.CurrentCulture;
+ Thread.CurrentThread.CurrentCulture = new CultureInfo("tr-TR");
+ Thread.CurrentThread.CurrentUICulture = new CultureInfo("tr-TR");
+
+ try
+ {
+ MySqlCommand cmd = new MySqlCommand("spTest", conn);
+ cmd.Parameters.Add("p_paramname", 2);
+ cmd.CommandType = CommandType.StoredProcedure;
+ cmd.ExecuteScalar();
+ }
+ catch (Exception ex)
+ {
+ Assert.Fail(ex.Message);
+ }
+ finally
+ {
+ Thread.CurrentThread.CurrentCulture = culture;
+ Thread.CurrentThread.CurrentUICulture = uiCulture;
+ }
+ }
}
}
Modified: branches/1.0/mysqlclient/MySql.Data.csproj
===================================================================
--- branches/1.0/mysqlclient/MySql.Data.csproj 2006-09-19 19:32:12 UTC (rev 349)
+++ branches/1.0/mysqlclient/MySql.Data.csproj 2006-09-19 19:33:49 UTC (rev 350)
@@ -100,7 +100,8 @@
-
+
+
@@ -111,6 +112,7 @@
+
@@ -141,7 +143,6 @@
True
Resources.resx
-