Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
milessabin committed Jun 13, 2024
1 parent 218cecb commit 74e57ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sql/shared/src/main/scala/SqlMapping.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2846,7 +2846,7 @@ trait SqlMappingLike[F[_]] extends CirceMappingLike[F] with SqlModule[F] { self
case sel@Select(fieldName, _, _) if isPolySelect(sel) =>
typeMappings.rawFieldMapping(context, fieldName) match {
case Some(TypeMappings.PolymorphicFieldMapping(cands)) =>
cands.map { case (pred, _) => Narrow(schema.uncheckedRef(pred.tpe), q) }
cands.map { case (pred, _) => Narrow(schema.uncheckedRef(pred.tpe), sel) }
case _ => Seq(sel)
}

Expand Down

0 comments on commit 74e57ac

Please sign in to comment.