postgresql7.1 update surveys set editable_p = util__logical_negation(editable_p) where survey_id = :survey_id