Author: kostat
Date: 2007-01-16 09:52:55 -0500 (Tue, 16 Jan 2007)
New Revision: 71136
Modified:
trunk/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlCommand.cs
Log:
if SP has dots - don't wrap
Modified: trunk/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlCommand.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlCommand.cs
2007-01-16 14:33:47 UTC (rev 71135)
+++ trunk/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlCommand.cs
2007-01-16 14:52:55 UTC (rev 71136)
@@ -87,11 +87,14 @@
public override string CommandText {
get {
string commandText = base.CommandText;
- if (CommandType != CommandType.StoredProcedure
|| string.IsNullOrEmpty (commandText))
+ if (CommandType != CommandType.StoredProcedure
||
+ string.IsNullOrEmpty (commandText) ||
+ commandText [0] == '[' ||
+ commandText.IndexOf ('.') >= 0)
return commandText;
string trimmedCommandText = commandText.TrimEnd
();
- if (commandText [0] != '[' &&
trimmedCommandText.Length > 0 && trimmedCommandText [trimmedCommandText.Length
- 1] != ')')
+ if (trimmedCommandText.Length > 0 &&
trimmedCommandText [trimmedCommandText.Length - 1] != ')')
commandText = String.Concat ("[",
commandText, "]");
return commandText;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches