Re: [sqlite] SQLITE_IOERR and strange rollback when db is busy

2004-12-26 Thread Rolf Schaeuble
D. Richard Hipp wrote: Rolf Schaeuble wrote: There are other places in sqlite3pager_get where SQLITE_IOERR are returned; I've not checked whether these can also be triggered by the db being locked or if they indicate serious problem. If someone is interested, I can send a test case for this

Re: [sqlite] updating table with join

2004-12-26 Thread Alex Chudnovsky
Kurt Welgehausen wrote: Your update is logically equivalent to this pseudocode: for every testcs in (select checksum from test) do update test set id = (select bucketid from buckets where buckets.checksum = testcs) where test.checksum = testcs You'll

Re: [sqlite] updating table with join

2004-12-26 Thread Kurt Welgehausen
> update test set ID=BucketID > from buckets B, test T > where B.CheckSum=T.CheckSum Your update is logically equivalent to this pseudocode: for every testcs in (select checksum from test) do update test set id = (select bucketid from buckets where

[sqlite] updating table with join

2004-12-26 Thread Alex Chudnovsky
Hi all, This is my first post here, so I'd like to express thanks to Mr D. Richard Hipp for creating such a great small database! Now here is my question -- it appears that it is not possible to update table while doing join with other tables, something I got so used to with "big" databases.

Re: [sqlite] question about pager.c / statement journals and normal journals

2004-12-26 Thread D. Richard Hipp
Rolf Schaeuble wrote: Hello, I've had a look at pager.c to understand what's going on in there. While I think I understand most of it, there's one point I don't understand: The comment for pager_stmt_playback says: **(2) In addition to playing back the statement journal, also **

Re: [sqlite] SQLITE_IOERR and strange rollback when db is busy

2004-12-26 Thread D. Richard Hipp
Rolf Schaeuble wrote: There are other places in sqlite3pager_get where SQLITE_IOERR are returned; I've not checked whether these can also be triggered by the db being locked or if they indicate serious problem. If someone is interested, I can send a test case for this problem. Please go to