+2008-06-12 Atsushi Enomoto <atsushi@ximian.com>
+
+ * SqlDateTime.cs, SqlDecimal.cs, SqlInt32.cs, SqlInt16.cs,
+ SqlByte.cs, SqlInt64.cs, SqlString.cs, SqlDouble.cs,
+ SqlSingle.cs, SqlBinary.cs, SqlMoney.cs, SqlGuid.cs:
+ ok, everything needs the same fix.
+ (Do not let me write exhausting tests for everything.)
+
2008-06-12 Atsushi Enomoto <atsushi@ximian.com>
* SqlBoolean.cs : SqlBoolean.Null.Equals(non-null) caused crash.
{
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
{
if (!(value is SqlByte))
return false;
- else if (this.IsNull && ((SqlByte)value).IsNull)
- return true;
+ else if (this.IsNull)
+ return ((SqlByte)value).IsNull;
else if (((SqlByte)value).IsNull)
return false;
else
{
if (!(value is SqlDateTime))
return false;
- else if (this.IsNull && ((SqlDateTime)value).IsNull)
- return true;
+ else if (this.IsNull)
+ return ((SqlDateTime)value).IsNull;
else if (((SqlDateTime)value).IsNull)
return false;
else
{
if (!(value is SqlDecimal))
return false;
- else if (this.IsNull && ((SqlDecimal)value).IsNull)
- return true;
+ else if (this.IsNull)
+ return ((SqlDecimal)value).IsNull;
else if (((SqlDecimal)value).IsNull)
return false;
else
{
if (!(value is SqlDouble))
return false;
- if (this.IsNull && ((SqlDouble)value).IsNull)
- return true;
+ if (this.IsNull)
+ return ((SqlDouble)value).IsNull;
else if (((SqlDouble)value).IsNull)
return false;
else
{
if (!(value is SqlGuid))
return false;
- else if (this.IsNull && ((SqlGuid)value).IsNull)
- return true;
+ else if (this.IsNull)
+ return ((SqlGuid)value).IsNull;
else if (((SqlGuid)value).IsNull)
return false;
else
{
if (!(value is SqlInt16))
return false;
- else if (this.IsNull && ((SqlInt16)value).IsNull)
- return true;
+ else if (this.IsNull)
+ return ((SqlInt16)value).IsNull;
else if (((SqlInt16)value).IsNull)
return false;
else
{
if (!(value is SqlInt32))
return false;
- else if (this.IsNull && ((SqlInt32)value).IsNull)
- return true;
+ else if (this.IsNull)
+ return ((SqlInt32)value).IsNull;
else if (((SqlInt32)value).IsNull)
return false;
else
{
if (!(value is SqlInt64))
return false;
- else if (this.IsNull && ((SqlInt64)value).IsNull)
- return true;
+ else if (this.IsNull)
+ return ((SqlInt64)value).IsNull;
else if (((SqlInt64)value).IsNull)
return false;
else
{
if (!(value is SqlMoney))
return false;
- if (this.IsNull && ((SqlMoney)value).IsNull)
- return true;
+ if (this.IsNull)
+ return ((SqlMoney)value).IsNull;
else if (((SqlMoney)value).IsNull)
return false;
else
{
if (!(value is SqlSingle))
return false;
- else if (this.IsNull && ((SqlSingle)value).IsNull)
- return true;
+ else if (this.IsNull)
+ return ((SqlSingle)value).IsNull;
else if (((SqlSingle)value).IsNull)
return false;
else
{
if (!(value is SqlString))
return false;
- if (this.IsNull && ((SqlString)value).IsNull)
- return true;
+ if (this.IsNull)
+ return ((SqlString)value).IsNull;
else if (((SqlString)value).IsNull)
return false;
else