List:Commits« Previous MessageNext Message »
From:Reggie Burnett Date:October 23 2009 6:39pm
Subject:bzr commit into connector-net-5.2 branch (reggie.burnett:714) Bug#47153
View as plain text  
#At file:///D:/bzr-connector-net/5.2/ based on revid:reggie.burnett@stripped

  714 Reggie Burnett	2009-10-23
      - fixed connection reset that was attempting to use the last encoding to do the authentication.  This
        would fail, for example, if UCS2 was used to read the last column before reset (bug #47153)

    modified:
      CHANGES
      MySql.Data/Provider/Source/NativeDriver.cs
      MySql.Data/Tests/Source/PoolingTests.cs
=== modified file 'CHANGES'
=== modified file 'CHANGES'
--- a/CHANGES	2009-10-22 21:29:20 +0000
+++ b/CHANGES	2009-10-23 18:39:54 +0000
@@ -18,6 +18,8 @@
 - fixed problem with non-IS column parsing that caused data type and column type to be equal when
   parsing set and enum columns
 - fixed indexes schema collection so that it still works with bad table names such as b``a`d (bug #48101)
+- fixed connection reset that was attempting to use the last encoding to do the authentication.  This
+  would fail, for example, if UCS2 was used to read the last column before reset (bug #47153)
 
 Version 5.2.7 7/13/09
 - fixed procedure parameters collection so that an exception is thrown if we can't get the 

=== modified file 'MySql.Data/Provider/Source/NativeDriver.cs'
--- a/MySql.Data/Provider/Source/NativeDriver.cs	2009-08-21 18:49:35 +0000
+++ b/MySql.Data/Provider/Source/NativeDriver.cs	2009-10-23 18:39:54 +0000
@@ -444,6 +444,7 @@
 
         public override void Reset()
         {
+            stream.Encoding = this.Encoding;
             stream.StartOutput(0, true);
             stream.WriteByte((byte) DBCmd.CHANGE_USER);
             Authenticate();

=== modified file 'MySql.Data/Tests/Source/PoolingTests.cs'
Binary files a/MySql.Data/Tests/Source/PoolingTests.cs	2009-03-25 16:29:06 +0000 and b/MySql.Data/Tests/Source/PoolingTests.cs	2009-10-23 18:39:54 +0000 differ

Attachment: [text/bzr-bundle] bzr/reggie.burnett@sun.com-20091023183954-tn4snlfh997mx271.bundle
Thread
bzr commit into connector-net-5.2 branch (reggie.burnett:714) Bug#47153Reggie Burnett23 Oct