Fixed backend for better next_row() handling
Authored by: artyom-beilis 2010-11-29
Parent: [r1548]
Child: [r1550]