2 Replies Latest reply on Jan 24, 2012 9:49 PM by user11188564

    BDBSQL Errorcodes

      What is the difference between SQLITE_BUSY and SQLITE_LOCKED - when are these errors returned ?

      When is SQLITE_NOMEM errors returned (other than malloc failures) ?

      Thanks for your help.
        • 1. Re: BDBSQL Errorcodes
          SQLITE_BUSY usually means that the entire database is temporarily blocked (usually because the database schema table is currently being updated, so no other thread can access the database until that updated is completed), while SQLITE_LOCKED means the current operation deadlocked with another thread and had its locks released and the current operation was rolled back.

          SQLITE_NOMEM is only returned for malloc (and realloc) failures (both from internal mallocs and user requested mallocs) when the application runs out of memory.

          Lauren Foutz
          • 2. Re: BDBSQL Errorcodes
            Thank you.