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 3e82715 + 7cada54 commit 5548479Copy full SHA for 5548479
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