Work on bug #1172. Save result set postition for each record in a