[Quantproject-developers] QuantProject/b2_DataAccess SQLBuilder.cs, 1.5, 1.6
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2009-01-04 17:51:24
|
Update of /cvsroot/quantproject/QuantProject/b2_DataAccess In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7102/b2_DataAccess Modified Files: SQLBuilder.cs Log Message: A new method internal static string FormatDoubleForSql( double value ) has been added Index: SQLBuilder.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b2_DataAccess/SQLBuilder.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** SQLBuilder.cs 30 Dec 2008 00:14:52 -0000 1.5 --- SQLBuilder.cs 4 Jan 2009 17:51:12 -0000 1.6 *************** *** 265,268 **** --- 265,280 ---- return setStandardDeviationFunctionName; } + + /// <summary> + /// returns a string that can be used in a Sql query + /// </summary> + /// <param name="value"></param> + /// <returns></returns> + internal static string FormatDoubleForSql( double value ) + { + string formattedValue = + value.ToString().Replace( ',' , '.' ); + return formattedValue; + } } } |