Skip to content

Commit

Permalink
Missing optionality makes an attribute a pattern!
Browse files Browse the repository at this point in the history
There has to be a distinct optionality set.
  • Loading branch information
helje5 committed Nov 7, 2024
1 parent 4caeec6 commit 7542c02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/ZeeQL/Access/Attribute.swift
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ open class ModelAttribute : Attribute, Equatable {
public var isPattern : Bool {
if patternType != .none { return true }
if externalType == nil { return true }
if allowsNull == nil { return true }
return false
}

Expand Down

0 comments on commit 7542c02

Please sign in to comment.