MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:rburnett Date:May 19 2006 3:58pm
Subject:Connector/NET commit: r239 - in branches/1.0: TestSuite mysqlclient
View as plain text  
Modified:
   branches/1.0/TestSuite/PreparedStatements.cs
   branches/1.0/mysqlclient/parameter.cs
Log:
Bug #16934 Unsigned values > 2^63 (UInt64) cannot be used in prepared statements

Small correction to the previous commit.  

Modified: branches/1.0/TestSuite/PreparedStatements.cs
===================================================================
--- branches/1.0/TestSuite/PreparedStatements.cs	2006-05-19 15:56:33 UTC (rev 238)
+++ branches/1.0/TestSuite/PreparedStatements.cs	2006-05-19 15:58:50 UTC (rev 239)
@@ -634,7 +634,7 @@
                 "?lVal, ?mVal, ?sVal)", conn);
             cmd.Parameters.Add("?ulVal", MySqlDbType.UInt64);
             cmd.Parameters.Add("?lVal", MySqlDbType.UInt32);
-            cmd.Parameters.Add("?mVal", MySqlDbType.UInt32);
+            cmd.Parameters.Add("?mVal", MySqlDbType.UInt24);
             cmd.Parameters.Add("?sVal", MySqlDbType.UInt16);
             cmd.Prepare();
             cmd.Parameters[0].Value = UInt64.MaxValue;

Modified: branches/1.0/mysqlclient/parameter.cs
===================================================================
--- branches/1.0/mysqlclient/parameter.cs	2006-05-19 15:56:33 UTC (rev 238)
+++ branches/1.0/mysqlclient/parameter.cs	2006-05-19 15:58:50 UTC (rev 239)
@@ -315,7 +315,7 @@
                 case MySqlDbType.UInt32:
                     return (int)MySqlDbType.Int32 | 0x8000;
                 case MySqlDbType.UInt24:
-                    return (int)MySqlDbType.Int64 | 0x8000;
+                    return (int)MySqlDbType.Int32 | 0x8000;
                 case MySqlDbType.UInt16:
                     return (int)MySqlDbType.Int16 | 0x8000;
                 default:

Thread
Connector/NET commit: r239 - in branches/1.0: TestSuite mysqlclientrburnett19 May