https://kotlinlang.org logo
#exposed
Title
# exposed
a

avolkmann

03/14/2018, 12:50 PM
this doesn't compile anymore after updating:
ResultRow.get(Max(Table.id, IntegerColumnType()))
I can make it work by casting:
it[Max(Tableid, IntegerColumnType()) as Expression<Int>]
t

tapac

03/14/2018, 2:21 PM
Tableid
is
Column<EntityID<Int>>
?
Try:
Copy code
val maxId = Table.id.max()
val maxValue resultRow[maxId]
a

avolkmann

03/15/2018, 10:47 AM
That works, but has to be on separate lines
t

tapac

03/15/2018, 12:30 PM
Yep, looks like a type inference bug. I'll report it to kotlin team.
2 Views