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.
2 parents ffb0fcc + 82a73a0 commit 7cada54Copy full SHA for 7cada54
Modules/Sources/Storage/GRDB/Model/PersistedProduct.swift
@@ -132,9 +132,9 @@ public extension PersistedProduct {
132
.filter([ProductType.simple.rawValue, ProductType.variable.rawValue].contains(Columns.productTypeKey))
133
.filter(Columns.downloadable == false)
134
.filter(
135
- Columns.name.like(likePattern) ||
136
- Columns.sku.like(likePattern) ||
137
- Columns.globalUniqueID.like(likePattern)
+ Columns.name.like(likePattern, escape: "\\") ||
+ Columns.sku.like(likePattern, escape: "\\") ||
+ Columns.globalUniqueID.like(likePattern, escape: "\\")
138
)
139
.order(Columns.name.collating(.localizedCaseInsensitiveCompare))
140
}
0 commit comments