Renamed const AFFECTED to AFFECTED_ROWS