From: Date: August 24 2007 11:08pm Subject: Connector/NET commit: r978 - in branches/1.0: . mysqlclient List-Archive: http://lists.mysql.com/commits/33061 X-Bug: 30233 Message-Id: <200708242108.l7OL8n37008140@bk-internal.mysql.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modified: branches/1.0/CHANGES branches/1.0/mysqlclient/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/1.0/CHANGES =================================================================== --- branches/1.0/CHANGES 2007-08-24 21:05:40 UTC (rev 977) +++ branches/1.0/CHANGES 2007-08-24 21:08:49 UTC (rev 978) @@ -1,3 +1,7 @@ +Version 1.0.11 + - 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 1.0.10 Bugs ---- Modified: branches/1.0/mysqlclient/Field.cs =================================================================== --- branches/1.0/mysqlclient/Field.cs 2007-08-24 21:05:40 UTC (rev 977) +++ branches/1.0/mysqlclient/Field.cs 2007-08-24 21:08:49 UTC (rev 978) @@ -144,7 +144,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