List:Commits« Previous MessageNext Message »
From:rburnett Date:August 24 2007 10:56pm
Subject:Connector/NET commit: r975 - in branches/5.0: . Driver/Source
View as plain text  
Modified:
   branches/5.0/CHANGES
   branches/5.0/Driver/Source/Field.cs
Log:
Fixed problem where fields that were blobs but did not include the BLOB flag were treated
as binary when they should have been treated as text.  (Bug #30233)


Modified: branches/5.0/CHANGES
===================================================================
--- branches/5.0/CHANGES	2007-08-24 19:29:27 UTC (rev 974)
+++ branches/5.0/CHANGES	2007-08-24 20:56:05 UTC (rev 975)
@@ -1,3 +1,9 @@
+Version 5.0.9   
+
+  - Fixed problem where fields that were blobs but did not include the BLOB flag were
treated
+    as binary when they should have been treated as text.  (Bug #30233)
+
+
 Version 5.0.8   8/16/2007
 
   Bug #28706 Log messages are truncated  

Modified: branches/5.0/Driver/Source/Field.cs
===================================================================
--- branches/5.0/Driver/Source/Field.cs	2007-08-24 19:29:27 UTC (rev 974)
+++ branches/5.0/Driver/Source/Field.cs	2007-08-24 20:56:05 UTC (rev 975)
@@ -145,7 +145,14 @@
 
 		public bool IsBlob
 		{
-			get { return (colFlags & ColumnFlags.BLOB) > 0; }
+			get
+			{
+				return (mySqlDbType >= MySqlDbType.TinyBlob &&
+				mySqlDbType <= MySqlDbType.Blob) ||
+				(mySqlDbType >= MySqlDbType.TinyText &&
+				mySqlDbType <= MySqlDbType.Text) ||
+				(colFlags & ColumnFlags.BLOB) > 0;
+			}
 		}
 
 		public bool IsBinary

Thread
Connector/NET commit: r975 - in branches/5.0: . Driver/Sourcerburnett24 Aug