Improvement THRONE-81
Merge branch 'gitlab/f.guitton'
Double fix for THRONE-81
Fixing issue THRONE-82.
Option 'new Integer(result_instance_id)' tested but didn't proove functioning on result_instance_id == null;
CAST(? AS numeric) instead.
Merge branch 'gitlab/f.guitton'
Again, fixing THRONE-81
Merge branch 'gitlab/f.guitton'