return affected rows in exec command