While enumerating all rows in a table, If the B+ tree contains either a InteriorIndexBtreePage or LeafIndexBtreePage, it throws an ArgumentOutOfRangeException.
using FileStream fs = File.OpenRead(file);
using Sqlite3Database db = new Sqlite3Database(fs);
Sqlite3Table tbl = db.GetTable("Scans");
foreach (Sqlite3Row row in tbl.EnumerateRows())
{
// do something with row
}
It fails on this line.
Notes:
- It should probably have been a
NotSupportedException
- It is my understanding that these pages don't contain data, so they shouldn't be enumerated anyway