askbook / csharp-sqlite

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

Debug.Assert fails in btree without SQLITE_DEBUG defined #100

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We had a minor issue with one of the debug.assert calls always coming up in our 
debug builds.  I took a quick look at it and it turns out that in the method 
dropCell the call: Debug.Assert( sz == cellSize( pPage, idx ) ); will not have 
a properly implemented cellSize method unless you define SQLITE_DEBUG.  To 
remain consistent with this schema I put an ifdef around the debug.assert call, 
like so:

#if SQLITE_DEBUG

      Debug.Assert( sz == cellSize( pPage, idx ) );

#endif

Original issue reported on code.google.com by noah.hart@gmail.com on 14 Mar 2011 at 4:14

GoogleCodeExporter commented 8 years ago
Fixed in changeset 27 (2d4450ddcd0c)

Original comment by noah.hart@gmail.com on 14 Mar 2011 at 4:17