On Jul 24, 2006, at 14:49, [EMAIL PROTECTED] wrote:

Daniel van Ham Colchete <[EMAIL PROTECTED]> wrote:

I was trying to understand why would a sqlite3_prepare return
SQLITE_BUSY.

If SQLite does not already have the database schema loaded
into cache, it needs to read the schema out of the SQLITE_MASTER
table before it can prepare the new SQL statement.  If another
process has the database locked, this read is not possible and
sqlite3_prepare will return SQLITE_BUSY.

Maybe this has something to do with the problem I reported in "locked implies exception?". Active Record in development mode calls table_info a lot and if that does not place nice with locks at least I know what to fix. Is it a good guess?

-- fxn

Reply via email to