Supporting the cursor.upto(0) argument, which means 'all'