tobiasschulz / csharp-sqlite

Automatically exported from code.google.com/p/csharp-sqlite
Other
0 stars 0 forks source link

testfixture fails on e_vacuum.test #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Analysis:  Only happens with SQLITE_HAS_CODEC

Looks like when database is encrypted reports pagesize of 1024 until the first 
command is executed

e_vacuum-1.3.2.1...
Expected: [2048 0]
     Got: [1024 0]
e_vacuum-1.3.3.2...
Expected: [2048 1]
     Got: [1024 1]

Original issue reported on code.google.com by noah.hart@gmail.com on 2 Mar 2011 at 12:22

GoogleCodeExporter commented 9 years ago
According to vacuum.c

     /* A VACUUM cannot change the pagesize of an encrypted database. */

So the tests in e_vacuum.test which attempt to change page size need to be 
bracked with a test for codec 

Original comment by noah.hart@gmail.com on 7 Mar 2011 at 1:05

GoogleCodeExporter commented 9 years ago
According to vacuum.c

     /* A VACUUM cannot change the pagesize of an encrypted database. */

So the tests in e_vacuum.test which attempt to change page size need to be 
bracked with a test for codec 

Original comment by noah.hart@gmail.com on 7 Mar 2011 at 1:06