Hi,
I got an exception in the following code:
val result = ctx.select(q.Date, q.Symbol, q.Close,
isnull(t.FIINetBuyVol, 0) as FIINetBuyVol).fetch()
type mismatch;
found : org.jooq.TableField[prod.tables.records.II3TradeRow,Long]
required: org.jooq.Field[Any]
Note: Long <: Any (and
org.jooq.TableField[prod.tables.records.II3TradeRow,Long] <:
org.jooq.Field[Long]), but Java-defined trait Field is invariant in type T.
You may wish to investigate a wildcard type such as `_ <: Any`. (SLS
3.2.10)]
I have to convert 0 to java.lang.Long. Is there a implict way?
val result = ctx.select(q.Date, q.Symbol, q.Close,
isnull(t.FIINetBuyVol, java.lang.Long.valueOf(0)) as
FIINetBuyVol).fetch()
Thanks.
--
You received this message because you are subscribed to the Google Groups "jOOQ
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.