mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-27 11:51:31 +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 {
|
switch value {
|
||||||
|
|
||||||
|
#if swift(>=5.7)
|
||||||
case let optionalValue as any FieldOptionalType:
|
case let optionalValue as any FieldOptionalType:
|
||||||
switch optionalValue.cs_wrappedValue {
|
switch optionalValue.cs_wrappedValue {
|
||||||
|
|
||||||
@@ -209,6 +210,12 @@ public struct Where<O: DynamicObject>: WhereClauseType, FetchClause, QueryClause
|
|||||||
self.init(valuePredicate)
|
self.init(valuePredicate)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
case nil:
|
||||||
|
self.init(nilPredicate)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
case is NSNull:
|
case is NSNull:
|
||||||
self.init(nilPredicate)
|
self.init(nilPredicate)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user