* OdbcParameterTest.cs: Fixed compilation on 1.0 profile.
[mono.git] / mcs / class / System.Data / System.Data.SqlTypes / SqlBinary.cs
index 8aa790c14f0c39f7fe28ff6647c70388cb3fb191..940436bfcfab3b1d63d5237509b71a0d1ce93e70 100644 (file)
@@ -46,7 +46,7 @@ namespace System.Data.SqlTypes
        /// </summary>
 #if NET_2_0
        [SerializableAttribute]
-       [XmlSchemaProvider ("GetSchema")]
+       [XmlSchemaProvider ("GetXsdType")]
 #endif
        public struct SqlBinary : INullable, IComparable
 #if NET_2_0
@@ -148,8 +148,8 @@ namespace System.Data.SqlTypes
                {
                        if (!(value is SqlBinary))
                                return false;
-                       else if (this.IsNull && ((SqlBinary)value).IsNull)
-                               return true;
+                       else if (this.IsNull)
+                               return ((SqlBinary)value).IsNull;
                        else if (((SqlBinary)value).IsNull)
                                return false;
                        else