From: Date: May 14 2007 9:28pm Subject: Connector/NET commit: r719 - in branches/5.0: . Driver/Source/Types List-Archive: http://lists.mysql.com/commits/26637 X-Bug: 23342 Message-Id: <200705141928.l4EJSiMk004141@bk-internal.mysql.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modified: branches/5.0/CHANGES branches/5.0/Driver/Source/Types/MySqlDateTime.cs Log: Bug #23342 Incorrect parsing of Datetime object for MySQL versions below 4.1 The code for parsing timestamps on 4.0 servers was incorrectly setting the type of returned objects as MySqlDateTIme instead of the type read from the host. Modified: branches/5.0/CHANGES =================================================================== --- branches/5.0/CHANGES 2007-05-11 20:22:38 UTC (rev 718) +++ branches/5.0/CHANGES 2007-05-14 19:28:42 UTC (rev 719) @@ -13,6 +13,7 @@ Bug #28167 Poor performance building connection string (thanks Maxim!) Bug #26041 Connection Protocol Property Error in PropertyGrid Control Bug #26754 EnlistTransaction throws false MySqlExeption "Already enlisted" + Bug #23342 Incorrect parsing of Datetime object for MySQL versions below 4.1 Other changes ------------- Modified: branches/5.0/Driver/Source/Types/MySqlDateTime.cs =================================================================== --- branches/5.0/Driver/Source/Types/MySqlDateTime.cs 2007-05-11 20:22:38 UTC (rev 718) +++ branches/5.0/Driver/Source/Types/MySqlDateTime.cs 2007-05-14 19:28:42 UTC (rev 719) @@ -320,7 +320,7 @@ if (s.Length > 10) second = int.Parse(s.Substring(pos, 2)); - return new MySqlDateTime(MySqlDbType.Datetime, year, month, day, hour, + return new MySqlDateTime(type, year, month, day, hour, minute, second); }