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);
}
+
+ /// <summary>
+ /// Bug #22452 MySql.Data.MySqlClient.MySqlException:
+ /// </summary>
+ [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 @@
<Content Include="docs\MySqlParameterCollection.xml" />
<Content Include="docs\MySqlTransaction.xml" />
<None Include="Installer\main.wxs" />
- <None Include="Installer\ui.wxs" />
+ <None Include="Installer\samples.wxs" />
+ <None Include="Installer\sources.wxs" />
<Compile Include="AssemblyInfo.cs" />
<Compile Include="CharSetMap.cs" />
<Compile Include="command.cs" />
@@ -111,6 +112,7 @@
<Compile Include="common\NamedPipeStream.cs" />
<Compile Include="common\NativeMethods.cs" />
<Compile Include="common\Platform.cs" />
+ <Compile Include="common\SharedMemoryStream.cs" />
<Compile Include="common\SocketStream.cs" />
<Compile Include="common\StreamCreator.cs" />
<Compile Include="common\Version.cs" />
@@ -141,7 +143,6 @@
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
- <Compile Include="SharedMemoryStream.cs" />
<Compile Include="StoredProcedure.cs" />
<Compile Include="transaction.cs" />
<Compile Include="Types\MySqlBinary.cs" />
Thread |
---|
• Connector/NET commit: r350 - in branches/1.0: . TestSuite mysqlclient | rburnett | 19 Sep |