List:Commits« Previous MessageNext Message »
From:Vladislav Vaintroub Date:August 5 2009 12:15am
Subject:bzr commit into connector-net-6.0 branch (vvaintroub:740) Bug#43736
View as plain text  
#At file:///H:/connector_net/6.0/ based on revid:vvaintroub@stripped

  740 Vladislav Vaintroub	2009-08-05
      - workaround for .NET compact framework problems when writing behind the end of MemoryStream (contributed by Nicholas Piasecki) (bug#43736)

    modified:
      CHANGES
      MySql.Data/Provider/Source/MySqlPacket.cs
=== modified file 'CHANGES'
--- a/CHANGES	2009-08-04 21:30:03 +0000
+++ b/CHANGES	2009-08-05 00:15:23 +0000
@@ -1,4 +1,6 @@
 Version 6.0.5
+- workaround for .NET compact framework problems when writing behind the end of MemoryStream 
+(contributed by Nicholas Piasecki) (bug#43736)
 - added keepalive connection option that can be used to detect network outages faster 
   and prevent firewalls from dropping idle connections (bug#40684)
 - fixed bug where our internal driver was using a batched command even if the user had added

=== modified file 'MySql.Data/Provider/Source/MySqlPacket.cs'
--- a/MySql.Data/Provider/Source/MySqlPacket.cs	2009-04-21 18:02:13 +0000
+++ b/MySql.Data/Provider/Source/MySqlPacket.cs	2009-08-05 00:15:23 +0000
@@ -31,7 +31,7 @@ namespace MySql.Data.MySqlClient
     {
         private byte[] tempBuffer = new byte[256];
         private Encoding encoding;
-        private MemoryStream buffer = new MemoryStream();
+        private MemoryStream buffer = new MemoryStream(5);
         private DBVersion version;
 
         public MySqlPacket()


Attachment: [text/bzr-bundle] bzr/vvaintroub@mysql.com-20090805001523-fouzun1gaxg5oa5b.bundle
Thread
bzr commit into connector-net-6.0 branch (vvaintroub:740) Bug#43736Vladislav Vaintroub5 Aug