* SqlString.cs: Fixed compilation warning. * SqlBytes.cs: Fixed compilation warning. * SqlChars.cs: Fixed compilation warning. svn path=/trunk/mcs/; revision=82536
@@ -1,3 +1,11 @@
+2007-07-24 Nagappan A <[email protected]>
+
+ * SqlString.cs: Fixed compilation warning.
+ * SqlBytes.cs: Fixed compilation warning.
+ * SqlChars.cs: Fixed compilation warning.
2007-05-10 Adar Wesley <[email protected]>
* SqlBoolean.cs: fixed typo in method names GreaterThanOrEquals,
@@ -78,7 +78,7 @@ namespace System.Data.SqlTypes
public SqlBytes (SqlBinary value)
{
- if (value == null) {
+ if (value.IsNull) {
notNull = false;
buffer = null;
}
@@ -75,7 +75,7 @@ namespace System.Data.SqlTypes
public SqlChars (SqlString value)
} else {
@@ -409,11 +409,8 @@ namespace System.Data.SqlTypes
if (x.IsNull || y.IsNull)
return SqlString.Null;
-
- if (( x == null) || (y == null))
- return SqlString.Null;
- return new SqlString (x.Value + y.Value);
+ else
+ return new SqlString (x.Value + y.Value);
// Equality