Closed GoogleCodeExporter closed 8 years ago
This is due to a typo in btree_c.cs
//#define restoreCursorPosition(p) \
// (p.eState>=CURSOR_REQUIRESEEK ? \
// btreeRestoreCursorPosition(p) : \
// SQLITE_OK)
static int restoreCursorPosition(BtCursor pCur)
{
if (pCur.eState == CURSOR_REQUIRESEEK)
return btreeRestoreCursorPosition(pCur);
else
return SQLITE_OK;
}
should be
//#define restoreCursorPosition(p) \
// (p.eState>=CURSOR_REQUIRESEEK ? \
// btreeRestoreCursorPosition(p) : \
// SQLITE_OK)
static int restoreCursorPosition(BtCursor pCur)
{
if (pCur.eState >= CURSOR_REQUIRESEEK) // <-- typo is here, >= instead of ==
return btreeRestoreCursorPosition(pCur);
else
return SQLITE_OK;
}
Original comment by enzinol@gmail.com
on 8 Sep 2009 at 8:10
confirmed fixed with 9/13 checkin
Original comment by noah.hart@gmail.com
on 13 Sep 2009 at 2:15
Original issue reported on code.google.com by
noah.hart@gmail.com
on 8 Aug 2009 at 2:49