Skip to content

Regression with Option[Record] results in 1.0.0-RC6 #2144

@Jasper-M

Description

@Jasper-M

I experienced a regression in the latest 1.0.0-RC6. I don't yet have a fully tested self contained example though.
But I think it boils down to this code:

case class Foo(a: Int, b: String)
case class Bar(c: Int, d: Option[String])

sql"SELECT a, b, c, d FROM foo LEFT JOIN bar ON a = c".query[(Foo, Option[Bar])]

With these records in the DB:

| a | b     |
-------------
| 1 | 'abc' |
| c | d    |
------------
| 1 | NULL |

I used to get (Foo(1, "abc"), Some(Bar(1, None))) as the result of that query, and now I get (Foo(1, "abc"), None).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions