File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ namespace SQLiteSharp;
1212public static class Globals {
1313 /// <summary>
1414 /// Convert an input string to a quoted SQL string that can be safely used in queries.<br/>
15- /// For example, <c>red ' blue' green</c> becomes <c>' red '' blue'' green' </c>.
15+ /// For example, <c>red " blue" green</c> becomes <c>" red "" blue"" green" </c>.
1616 /// </summary>
1717 public static string Quote ( string ? unsafeString ) {
1818 if ( unsafeString is null ) {
1919 return "null" ;
2020 }
21- return $ "' { unsafeString . Replace ( "'" , "''" ) } ' ";
21+ return $ "\" { unsafeString . Replace ( "\" " , "\" \" " ) } \" ";
2222 }
2323 public static Expression ? AndAlso ( Expression ? left , Expression ? right ) {
2424 if ( left is not null && right is not null ) {
You can’t perform that action at this time.
0 commit comments