What is the default value of sqlite3_busy_timeout?

It seems like it should be very easy to find out, but I don't see it being logged anywhere. If I open a sqlite connection and start a transaction without specifying a timeout, calling sqlite3_busy_timeoutwhat default value is used? Or will this somehow lead to undefined behavior? the documentation of this method does not say.

My specific use case is the version shipped with iOS, but I assume that the answer is almost the same on all platforms.

+4
source share
1 answer

sqlite3_busy_timeout(), sqlite3_busy_handler() , , step() SQLITE_BUSY.

. SQLITE_IOERR_BLOCKED . : SQLITE_BUSY ,

NULL, SQLITE_BUSY SQLITE_IOERR_BLOCKED . NULL, .

+3

All Articles