This is my fix:


String sql = "update `mission_users` set `remaining` = (@x := @x + 1) where 
mission_id=" + missionId + " and mission_parameters_id=" + missionParameterId + 
" order by execution desc;";
dsl.batch(dsl.query("SET @x = 0;"),dsl.query(sql)).execute();

-- 
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