Skip to content

Commit dd4ed84

Browse files
committed
Fix quote parameter in SqlQuote
1 parent c3a9e96 commit dd4ed84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SQLiteSharp/Globals.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public static class Globals {
2020
/// <remarks>
2121
/// The default quote character is only suitable for identifiers. String literals should use "<c>'</c>".
2222
/// </remarks>
23-
public static string SqlQuote(this string? unsafeString, string QuoteChar = "\"") {
23+
public static string SqlQuote(this string? unsafeString, string quote = "\"") {
2424
if (unsafeString is null) {
2525
return "null";
2626
}
27-
return $"{QuoteChar}{unsafeString.Replace(QuoteChar, $"{QuoteChar}{QuoteChar}")}{QuoteChar}";
27+
return $"{quote}{unsafeString.Replace(quote, $"{quote}{quote}")}{quote}";
2828
}
2929
/// <summary>
3030
/// Gets the value of the member if it's a property or field.

0 commit comments

Comments
 (0)