Hello,
I’d just like to point out that tests for the stage " Print number of TABLES #CE0" pass if we print database PAGE count - 1
which is easy to fetch from the DB header. This happens with multiple different test DBs in the test suite. But, they shouldn’t pass in general case. The minus one is for the sqlite_schema
table itself.
So, all test DBs have the same number of tables as database page count - 1
, but this is not the general case.
The solution should be (much) more complex than this - to traverse all pages.