Author: anagappan
Date: 2007-06-21 09:11:58 -0400 (Thu, 21 Jun 2007)
New Revision: 80468
Modified:
trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
trunk/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs
trunk/mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs
trunk/mcs/class/System.Data/System.Data.SqlClient/SqlRowsCopiedEventArgs.cs
Log:
2007-06-21 Nagappan A <[EMAIL PROTECTED]>
* SqlConnection.cs: Fixed compiler warning.
Modified: trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog 2007-06-21
13:11:37 UTC (rev 80467)
+++ trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog 2007-06-21
13:11:58 UTC (rev 80468)
@@ -1,3 +1,7 @@
+2007-06-21 Nagappan A <[EMAIL PROTECTED]>
+
+ * SqlConnection.cs: Fixed compiler warning.
+
2007-06-11 Nagappan A <[EMAIL PROTECTED]>
* SqlConnection.cs (ParseDataSource): Adds tcp support in
Modified: trunk/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs
2007-06-21 13:11:37 UTC (rev 80467)
+++ trunk/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs
2007-06-21 13:11:58 UTC (rev 80468)
@@ -131,9 +131,13 @@
#endif
[DefaultValue ("")]
[EditorAttribute
("Microsoft.VSDesigner.Data.SQL.Design.SqlConnectionStringEditor, "+
Consts.AssemblyMicrosoft_VSDesigner, "System.Drawing.Design.UITypeEditor, "+
Consts.AssemblySystem_Drawing )]
- [RecommendedAsConfigurable (true)]
+#if NET_2_0
+ [SettingsBindableAttribute (true)]
+#else
+ [RecommendedAsConfigurable (true)]
+#endif
[RefreshProperties (RefreshProperties.All)]
- [MonoTODO("persist security info, encrypt, enlist and ,
attachdbfilename keyword not implemented")]
+ [MonoTODO("persist security info, encrypt, enlist keyword not
implemented")]
public
#if NET_2_0
override
@@ -953,8 +957,11 @@
if (Client.Available <= 0)
return -1; // Error
-
+#if NET_2_0
+ IPEndPoint endpoint = new IPEndPoint
(Dns.GetHostEntry ("localhost").AddressList [0], 0);
+#else
IPEndPoint endpoint = new IPEndPoint
(Dns.GetHostByName ("localhost").AddressList [0], 0);
+#endif
Byte [] rawrs;
rawrs = Receive (ref endpoint);
Modified:
trunk/mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs
2007-06-21 13:11:37 UTC (rev 80467)
+++ trunk/mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs
2007-06-21 13:11:58 UTC (rev 80468)
@@ -242,7 +242,7 @@
#if NET_2_0
public SqlParameter AddWithValue (string parameterName, object
value)
{
- return Add (parameterName, value);
+ return Add (new SqlParameter (parameterName, value));
}
#endif // NET_2_0
Modified:
trunk/mcs/class/System.Data/System.Data.SqlClient/SqlRowsCopiedEventArgs.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data.SqlClient/SqlRowsCopiedEventArgs.cs
2007-06-21 13:11:37 UTC (rev 80467)
+++ trunk/mcs/class/System.Data/System.Data.SqlClient/SqlRowsCopiedEventArgs.cs
2007-06-21 13:11:58 UTC (rev 80468)
@@ -71,7 +71,6 @@
}
}
-
#endregion // Properties
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches