I have a mysql 5.7.25 database hosted on Amazon RDS I'm trying to insert doubles to. I inherited roughly 40 columns all Datatype DOUBLE with the Length/Set as reported by heidisql as (22,0). For months now I've been inserting data to this table and the records will have values such as 3.73850926 or 0.12856129 etc which is what I expected.
Recently I added another 23 columns in heidi sql and these are also set to (22,0)
What's baffling to me is that the new values are being rounded to 0, 2, 1, etc. It seems like they're actually following the (22,0) setting as I now understand it. Am I missing something here or is it likely that heidisql is misreporting the actual length/set of the old columns?
Here's a part of one data row in the db: UnderlyingPrice_19 is a "new" column, and the LeanedTheo column is "old"
Any recommendations on how to fix this up so I can get actual precision in the new columns?