Fix for DBCursorTest