I’m not familiar enough with DB2, but with MySQL and DECIMAL types the answer is no.
The introduction of strict_types
in 3.0 makes this stuff needlessly difficult IMO - I’m stuck on 2.4.2 until I can work out a way forward for hydrating from DB results.