Re: [sqlite] catching asserts from sqlite

2005-08-25 Thread Noel Burton-Krahn
;[EMAIL PROTECTED]> To: Sent: Monday, August 22, 2005 5:11 PM Subject: Re: [sqlite] catching asserts from sqlite On Mon, 2005-08-22 at 16:48 -0700, Noel Burton-Krahn wrote: The bug's not in SQLite. We're recording in an environment where disk files can become corrupted. SQLit

Re: [sqlite] catching asserts from sqlite

2005-08-22 Thread Noel Burton-Krahn
, 2005 5:11 PM Subject: Re: [sqlite] catching asserts from sqlite On Mon, 2005-08-22 at 16:48 -0700, Noel Burton-Krahn wrote: The bug's not in SQLite. We're recording in an environment where disk files can become corrupted. SQLite is suppose to respond to a corrupt disk file by ret

Re: [sqlite] catching asserts from sqlite

2005-08-22 Thread D. Richard Hipp
On Mon, 2005-08-22 at 16:48 -0700, Noel Burton-Krahn wrote: > The bug's not in SQLite. We're recording in an environment where disk files > can become corrupted. SQLite is suppose to respond to a corrupt disk file by returning the SQLITE_CORRUPT error code. If instead it hits an assert, that

Re: [sqlite] catching asserts from sqlite

2005-08-22 Thread Noel Burton-Krahn
IL PROTECTED]> To: Sent: Monday, August 22, 2005 4:34 PM Subject: Re: [sqlite] catching asserts from sqlite On Mon, 2005-08-22 at 16:09 -0700, Noel Burton-Krahn wrote: Sqlite throws an assert() and crashes when it reads a corrupt db. (Sqlite is fine, our recording medium is flaky.) I'

Re: [sqlite] catching asserts from sqlite

2005-08-22 Thread D. Richard Hipp
On Mon, 2005-08-22 at 16:09 -0700, Noel Burton-Krahn wrote: > Sqlite throws an assert() and crashes when it reads a corrupt db. (Sqlite > is fine, our recording medium is flaky.) I'd like to catch the assert() and > report an error without crashing. > > The problem is, sqlite throws assert() f

[sqlite] catching asserts from sqlite

2005-08-22 Thread Noel Burton-Krahn
Sqlite throws an assert() and crashes when it reads a corrupt db. (Sqlite is fine, our recording medium is flaky.) I'd like to catch the assert() and report an error without crashing. The problem is, sqlite throws assert() from functions that don't return an error code. So, there's no way t