Description[sqlite] Fix bug in how recover virtual table handles empty.
Previously the code assumed that the current cell was always less than
the number of cells if it was a valid leaf page (see top of
leafCursorCellDecode). Empty tables have a single root page with no
cells.
No bugs have been seen which trace to this. In testing what actually
happens with a newly-created empty table, I found that
leafCursorCellDecode exits with a ValidateError. By inspection, I
believe the most likely falsely valid result would be a single
previously-valid row which has been deleted from the table.
BUG=none
Committed: https://crrev.com/f4b7a92eaad7828cc0ba43c53cdebc6eb4788df6
Cr-Commit-Position: refs/heads/master@{#373853}
Patch Set 1 #
Total comments: 4
Dependent Patchsets: Messages
Total messages: 13 (5 generated)
|