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 bf2d785 commit 992afafCopy full SHA for 992afaf
Modules/Sources/Storage/GRDB/Model/PersistedProduct.swift
@@ -156,6 +156,7 @@ public extension PersistedProduct {
156
/// - Returns: An escaped pattern safe for use in LIKE queries
157
private static func escapeSQLLikePattern(_ pattern: String) -> String {
158
pattern
159
+ .replacingOccurrences(of: "\\", with: "\\\\")
160
.replacingOccurrences(of: "%", with: "\\%")
161
.replacingOccurrences(of: "_", with: "\\_")
162
}
0 commit comments