com-lihaoyi / scalasql

Scala ORM to query SQL databases from Scala via concise, type-safe, and familiar case classes and collection operations. Connects to Postgres, MySql, H2, and Sqlite out of the box
194 stars 22 forks source link

Fix option null values failing to put #42

Closed jlvertol closed 1 month ago

jlvertol commented 1 month ago

This PR fixes the error described in https://github.com/com-lihaoyi/scalasql/issues/41

Additionally it fixes it for Enum values on Postgres (which I'm fairly sure had the same error)

It appears keeping record of the JDBCType on TypeMappers is not necessary anymore, but nonetheless I kept the value there to touch as little as possible. I did update the DocString.

lihaoyi commented 1 month ago

Thanks @jlvertol! If you don't have any other PRs to make, I'll cut a release with this one so people can begin using it

jlvertol commented 1 month ago

Thanks @jlvertol! If you don't have any other PRs to make, I'll cut a release with this one so people can begin using it

No more PRs for now, release away! I sure be needing that release :-)

lihaoyi commented 1 month ago

0.1.11 should be out