On 4/25/16, Mark Foley <mfoley at novatec-inc.com> wrote:
>
> I wonder, then, why I get a lock error if the database is read-only in the
> first
> place?

The reader has to get a read lock in order to prevent a concurrent
writer from changing content out from under it.  (Moving the database
to WAL mode allows readers and writers to co-exist.)

-- 
D. Richard Hipp
drh at sqlite.org

Reply via email to