2003-06-01 Ville Palo <vi64pa@kolumbus.fi>
authorVille Palo <ville@mono-cvs.ximian.com>
Sun, 1 Jun 2003 13:06:26 +0000 (13:06 -0000)
committerVille Palo <ville@mono-cvs.ximian.com>
Sun, 1 Jun 2003 13:06:26 +0000 (13:06 -0000)
* SqlString.cs: added null checking

svn path=/trunk/mcs/; revision=15047

mcs/class/System.Data/System.Data.SqlTypes/ChangeLog
mcs/class/System.Data/System.Data.SqlTypes/SqlString.cs

index 4e64eb0dbefc1ff46589175f3526d558885b141b..0238793181b369857498e1e677c49f3a38721ff7 100644 (file)
@@ -1,3 +1,7 @@
+2003-06-01  Ville Palo <vi64pa@kolumbus.fi>
+
+       * SqlString.cs: added null checking
+       
 2003-05-28  Ville Palo <vi64pa@kolumbus.fi>
 
        * SqlMoney.cs: little fixes and clean ups
index 7e4ea983ae91b1309872c6e7d668f010044e4d30..3809f050012b374e3e1c9d8ee443064671b95994 100644 (file)
@@ -385,6 +385,9 @@ namespace System.Data.SqlTypes
                // Concatenates
                public static SqlString operator + (SqlString x, SqlString y) 
                {
+                       if (x.IsNull || y.IsNull)
+                               return SqlString.Null;
+
                        return new SqlString (x.Value + y.Value);
                }