Permalink
Browse files

2007-03-21 Nagappan A <anagappan@novell.com>

	* TdsMetaParameter.cs (Prepare): Include @ before parameter name,
	if doesnot exist.


svn path=/tags/mono-1-2-3-50/mcs/; revision=74787
  • Loading branch information...
1 parent dda6038 commit e27148fde898ecd8b315ed811d69174ca770f3fe @nagappan nagappan committed Mar 22, 2007
@@ -1,3 +1,8 @@
+2007-03-21 Nagappan A <anagappan@novell.com>
+
+ * TdsMetaParameter.cs (Prepare): Include @ before parameter name,
+ if doesnot exist.
+
2007-03-16 Andreia Gaita <avidigal@novell.com>
* TdsMetaParameter.cs: Add Validate() method. For now, validate
@@ -152,7 +152,10 @@ internal string Prepare ()
}
}
- StringBuilder result = new StringBuilder (String.Format ("{0} {1}", ParameterName, typeName));
+ string includeAt = "@";
+ if (ParameterName [0] == '@')
+ includeAt = "";
+ StringBuilder result = new StringBuilder (String.Format ("{0}{1} {2}", includeAt, ParameterName, typeName));
switch (typeName) {
case "decimal":
case "numeric":

0 comments on commit e27148f

Please sign in to comment.