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.
--
D. Richard Hipp   <[EMAIL PROTECTED]>

Reply via email to