Updating integer column with null values in postgres

This should be,

UPDATE table1 
SET column_a = NULL
WHERE column_b = 'XXX';