#6494 Update fields in SQL