This was caused by a trigger, which needed an IFNULL(...,0)
to prevent it inserting a NULL when data was missing.
↧
Answer by spraff for "Column X cannot be null" happening when that column is not null
↧