Re: [sqlite] famous "constraint failed" error

2010-01-23 Thread Roger Binns
Jan Bilek wrote: > ... is there any way how to detect which constraint has failed? http://www.sqlite.org/src/tktview?name=23b2128201 Roger ___ sqlite-users mailing list sqlite-users@sqlite.org

Re: [sqlite] famous "constraint failed" error

2010-01-23 Thread Jan Bilek
What else do you need to know? BTW... is there any way how to detect which constraint has failed? Jan Pavel Ivanov wrote: >> But why it only happens when any concurrent select query is in progress? >> > > Probably you don't tell us all necessary information about your set up > (or maybe

Re: [sqlite] famous "constraint failed" error

2010-01-22 Thread Pavel Ivanov
> But why it only happens when any concurrent select query is in progress? Probably you don't tell us all necessary information about your set up (or maybe you don't know it yourself) because concurrent select cannot cause this kind of error in any way. It can cause only SQLITE_BUSY error. Are

Re: [sqlite] famous "constraint failed" error

2010-01-22 Thread Jan Bilek
But why it only happens when any concurrent select query is in progress? Thanks for any response. Jan Pavel Ivanov wrote: >> Does any sqlite MVP know what could be beyond this strange >> error message. >> > > Exactly what message says: you tried to insert data that is not > allowed by

Re: [sqlite] famous "constraint failed" error

2010-01-22 Thread Jan Bilek
OK. Let's assume that my db design is buggy (messed up foreign keys or something). Could you then explain why i receive "constraint failed" error ONLY when any select query is in progress? No select in progress = no error. Thanks for reply. Jan cmar...@unc.edu wrote: > On Fri, 22 Jan 2010,

Re: [sqlite] famous "constraint failed" error

2010-01-22 Thread cmartin
On Fri, 22 Jan 2010, Jan Bilek wrote: > processing > of write transaction fails with strange "constraint failed" error (no. 19). > I've tried to search the web for any solution, but i haven't found > anything. While a web search can be useful, it is often more useful to go straight to the

Re: [sqlite] famous "constraint failed" error

2010-01-22 Thread Pavel Ivanov
> Does any sqlite MVP know what could be beyond this strange > error message. Exactly what message says: you tried to insert data that is not allowed by constraints in the table. "Read"/"write" threads construct doesn't have anything to do with that - everything can be reproduced in one "write"

[sqlite] famous "constraint failed" error

2010-01-22 Thread Jan Bilek
Hello, I've got a setup, where one process/thread writes data (multiple inserts in one transaction ) to db and other which reads data (one select) from db. These two threads use their own db connections. When "write" thread and "read" thread access the database at the same time, then processing