pymysql.err.DataError: (1265, “Data truncated for column ‘base_scrap_material_cost’ at row 1”)
when I bench update from 12.8.0 to 12.9.3. Before the update, the field ‘base_scrap_material_cost’ in table ‘tabBOM’ is datatype VARCHAR. Shouldn’t this be DECIMAL? If I change it to DECIMAL(18,6) and disallow and remove nulls the update works.
update `tabBOM Type` set base_scrap_material_cost = '0' where trim(coalesce(base_scrap_material_cost, ''))= '';
I don’t get any error, but I don’t get any result either!?
Thanks for your suggestion to use Heidi @akrause. I tried, but my Mariadb server only accepts local connections, and I tried to do a ssh tunnel with no luck.
I don’t know if it is the heat we are having, but I am feeling I am all dumbs with this…