Skip to content

Commit

Permalink
Compare the right field
Browse files Browse the repository at this point in the history
...
  • Loading branch information
helje5 committed Dec 5, 2024
1 parent bab439a commit 8b3857a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ZeeQL/Access/TypedFetchSpecification.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ extension TypedFetchSpecification: Equatable {
lhs.fetchLimit == rhs.fetchLimit,
lhs.fetchOffset == rhs.fetchOffset else { return false }

if let lhs = lhs.qualifier { return lhs.isEqual(to: rhs.entity) }
if let lhs = lhs.qualifier { return lhs.isEqual(to: rhs.qualifier) }
else if rhs.qualifier != nil { return false }

guard lhs.entityName == rhs.entityName else { return false }
Expand Down

0 comments on commit 8b3857a

Please sign in to comment.