We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3a9e96 commit dd4ed84Copy full SHA for dd4ed84
SQLiteSharp/Globals.cs
@@ -20,11 +20,11 @@ public static class Globals {
20
/// <remarks>
21
/// The default quote character is only suitable for identifiers. String literals should use "<c>'</c>".
22
/// </remarks>
23
- public static string SqlQuote(this string? unsafeString, string QuoteChar = "\"") {
+ public static string SqlQuote(this string? unsafeString, string quote = "\"") {
24
if (unsafeString is null) {
25
return "null";
26
}
27
- return $"{QuoteChar}{unsafeString.Replace(QuoteChar, $"{QuoteChar}{QuoteChar}")}{QuoteChar}";
+ return $"{quote}{unsafeString.Replace(quote, $"{quote}{quote}")}{quote}";
28
29
/// <summary>
30
/// Gets the value of the member if it's a property or field.
0 commit comments