Not helping me :confused:
# announcements
h
Not helping me 😕
r
what is the type of b?
p
It says
Column<DateTime>
and not
Column<DateTime?>
, so I guess it does not accept nullable values.
h
I'm using Exposed API
var b = date("b_column")
org.jetbrains.exposed.sql.Table public final fun date( name: String ): Column<DateTime>
g
@hyukchan var b = date("b_column").nullable()
❤️ 1
r
O don't know the exposed API but I had the same guess as @Pavlo Liapota that the type is not
Column<DateTime?>
you need to make your column nullable. I am sure this is somehow possible.
h
oh ok !
Thanks a lot for your help all, especially @gcx11 who gave me the solution 🙂
Where did you find that "nullable()" trick ? It's not on the official documentation, is it ?
g
@hyukchan https://github.com/JetBrains/Exposed/blob/master/README.md And I thought it could done be this way