mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 22:30:34 +01:00
Fix builds for Swift 5.6 and below
This commit is contained in:
@@ -197,7 +197,8 @@ public struct Where<O: DynamicObject>: WhereClauseType, FetchClause, QueryClause
|
||||
)
|
||||
}
|
||||
switch value {
|
||||
|
||||
|
||||
#if swift(>=5.7)
|
||||
case let optionalValue as any FieldOptionalType:
|
||||
switch optionalValue.cs_wrappedValue {
|
||||
|
||||
@@ -209,6 +210,12 @@ public struct Where<O: DynamicObject>: WhereClauseType, FetchClause, QueryClause
|
||||
self.init(valuePredicate)
|
||||
}
|
||||
|
||||
#else
|
||||
case nil:
|
||||
self.init(nilPredicate)
|
||||
|
||||
#endif
|
||||
|
||||
case is NSNull:
|
||||
self.init(nilPredicate)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user