Hi,

The following code has the exception 'type mismatch': 

val result = ctx.select(q.Date, q.Symbol, q.Close,
        DSL.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)]


Implitic conversion does't work, but I can fix it manually:

val result = ctx.select(q.Date, q.Symbol, q.Close,
        DSL.isnull(t.FIINetBuyVol, java.lang.Long.valueOf(0))    as 
FIINetBuyVol).fetch()

Is there a better way? 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.

Reply via email to