Author: anagappan
Date: 2007-10-12 04:24:22 -0400 (Fri, 12 Oct 2007)
New Revision: 87371

Modified:
   trunk/mcs/class/System.Data/System.Data.Odbc/ChangeLog
   trunk/mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs
Log:
* OdbcDataReader.cs: Bug 332400 - ODBC and LONGBLOB columns. Thanks to
  Ernesto Carrea <[EMAIL PROTECTED]> for the patch and the test
  case.

Modified: trunk/mcs/class/System.Data/System.Data.Odbc/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data.Odbc/ChangeLog      2007-10-12 
06:07:23 UTC (rev 87370)
+++ trunk/mcs/class/System.Data/System.Data.Odbc/ChangeLog      2007-10-12 
08:24:22 UTC (rev 87371)
@@ -1,3 +1,8 @@
+2007-10-12  Nagappan <[EMAIL PROTECTED]> 
+
+       * OdbcDataReader.cs: Bug 332400 - ODBC and LONGBLOB columns. Thanks to
+         Ernesto Carrea <[EMAIL PROTECTED]> for the patch and the test case.
+
 2007-10-08  Marek Safar <[EMAIL PROTECTED]> 
 
        * OdbcParameterCollection.cs (SetParameter): Fixed missing cast.

Modified: trunk/mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs      
2007-10-12 06:07:23 UTC (rev 87370)
+++ trunk/mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs      
2007-10-12 08:24:22 UTC (rev 87371)
@@ -739,7 +739,7 @@
                                        break;
                                case OdbcType.VarBinary :
                                case OdbcType.Image :
-                                       bufsize =  (col.MaxLength < 255 ? 
col.MaxLength : 255);
+                                       bufsize = (col.MaxLength < 255 && 
col.MaxLength > 0 ? col.MaxLength : 255);
                                        buffer= new byte [bufsize];
                                        ArrayList al = new ArrayList ();
                                        do { 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to